Created
November 23, 2017 12:51
-
-
Save alfredmyers/311cfcba4d9370a3ae1abd619d52376d to your computer and use it in GitHub Desktop.
Xamarin.Forms.Device.OS and Xamarin.Forms.TargetPlatform deprecated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Device.RuntimePlatform == Device.Android) | |
{ | |
//platform specific code | |
} | |
else if (Device.RuntimePlatform == Device.iOS) | |
{ | |
//platform specific code | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Device.OS == TargetPlatform.Android) | |
{ | |
//platform specific code | |
} | |
else if (Device.OS == TargetPlatform.iOS) | |
{ | |
//platform specific code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment