summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Device.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-10-11 16:47:50 +0200
committerStephane Delcroix <stephane@delcroix.org>2017-10-18 17:16:12 +0200
commit72fd2eef5fbe120159cfbf10316b55b85370d668 (patch)
tree79c4f21e1ca18b8f8ebcc649833ee24f1eb0e09d /Xamarin.Forms.Core/Device.cs
parentb423e7cc07e217295eb837ef7c335a449db7a3a5 (diff)
downloadxamarin-forms-72fd2eef5fbe120159cfbf10316b55b85370d668.tar.gz
xamarin-forms-72fd2eef5fbe120159cfbf10316b55b85370d668.tar.bz2
xamarin-forms-72fd2eef5fbe120159cfbf10316b55b85370d668.zip
[*] Expose the Flags to the Core (#1181)
* [*] Expose the Flags to the Core * docs * [C] Hide Device.Flags
Diffstat (limited to 'Xamarin.Forms.Core/Device.cs')
-rw-r--r--Xamarin.Forms.Core/Device.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/Device.cs b/Xamarin.Forms.Core/Device.cs
index cfeab5ae..f2e614d0 100644
--- a/Xamarin.Forms.Core/Device.cs
+++ b/Xamarin.Forms.Core/Device.cs
@@ -1,4 +1,5 @@
using System;
+using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Reflection;
@@ -82,6 +83,15 @@ namespace Xamarin.Forms
set { s_platformServices = value; }
}
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static IReadOnlyList<string> Flags { get; private set; }
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SetFlags(IReadOnlyList<string> flags)
+ {
+ Flags = flags;
+ }
+
public static void BeginInvokeOnMainThread(Action action)
{
PlatformServices.BeginInvokeOnMainThread(action);