summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-01-12 20:05:41 (GMT)
committerJason Smith <jason.smith@xamarin.com>2017-01-12 20:05:41 (GMT)
commitb6cb64e4930de9b16309f2d30c6bb0a2177048fd (patch)
treeae15f36d3e0e60cac6305f90520ad778de9c6ee3 /Xamarin.Forms.Platform.iOS
parent3af99cbbe145a876cc9839af0adead83695b5445 (diff)
downloadxamarin-forms-b6cb64e4930de9b16309f2d30c6bb0a2177048fd.zip
xamarin-forms-b6cb64e4930de9b16309f2d30c6bb0a2177048fd.tar.gz
xamarin-forms-b6cb64e4930de9b16309f2d30c6bb0a2177048fd.tar.bz2
[C] new OnPlatform mechanism (#658)
* [C] Obsolete TargetPlatform * [Xaml] support and test the new syntax * blind fix windows platforms
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Forms.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Forms.cs b/Xamarin.Forms.Platform.iOS/Forms.cs
index 9b03f56..2c8fc6f 100644
--- a/Xamarin.Forms.Platform.iOS/Forms.cs
+++ b/Xamarin.Forms.Platform.iOS/Forms.cs
@@ -53,7 +53,6 @@ namespace Xamarin.Forms
Log.Listeners.Add(new DelegateLogListener((c, m) => Trace.WriteLine(m, c)));
- Device.OS = TargetPlatform.iOS;
Device.PlatformServices = new IOSPlatformServices();
Device.Info = new IOSDeviceInfo();
@@ -199,6 +198,8 @@ namespace Xamarin.Forms
public bool IsInvokeRequired => !NSThread.IsMain;
+ public string RuntimePlatform => Device.iOS;
+
public void OpenUriAction(Uri uri)
{
UIApplication.SharedApplication.OpenUrl(new NSUrl(uri.AbsoluteUri));