summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-10-11 14:47:50 (GMT)
committerStephane Delcroix <stephane@delcroix.org>2017-10-18 15:16:12 (GMT)
commit72fd2eef5fbe120159cfbf10316b55b85370d668 (patch)
tree79c4f21e1ca18b8f8ebcc649833ee24f1eb0e09d /Xamarin.Forms.Core
parentb423e7cc07e217295eb837ef7c335a449db7a3a5 (diff)
downloadxamarin-forms-72fd2eef5fbe120159cfbf10316b55b85370d668.zip
xamarin-forms-72fd2eef5fbe120159cfbf10316b55b85370d668.tar.gz
xamarin-forms-72fd2eef5fbe120159cfbf10316b55b85370d668.tar.bz2
[*] Expose the Flags to the Core (#1181)
* [*] Expose the Flags to the Core * docs * [C] Hide Device.Flags
Diffstat (limited to 'Xamarin.Forms.Core')
-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 cfeab5a..f2e614d 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);