From 72fd2eef5fbe120159cfbf10316b55b85370d668 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Wed, 11 Oct 2017 16:47:50 +0200 Subject: [*] Expose the Flags to the Core (#1181) * [*] Expose the Flags to the Core * docs * [C] Hide Device.Flags --- Xamarin.Forms.Core/Device.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Xamarin.Forms.Core/Device.cs') 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 Flags { get; private set; } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static void SetFlags(IReadOnlyList flags) + { + Flags = flags; + } + public static void BeginInvokeOnMainThread(Action action) { PlatformServices.BeginInvokeOnMainThread(action); -- cgit v1.2.3