Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string GetPlatformSpecificTask()
- {
- var path = "unknown";
- #if __MOBILE__
- //Android or iOS specific code
- #endif
- #if WINDOWS_PHONE
- path = "windowsphone";
- #else
- #if __SILVERLIGHT__
- path = "silverlight";
- #else
- #if __ANDROID__
- path = "android";
- #else
- #if __ANDROID_16__
- //Android specific code for SDK 16 or newer
- #endif
- #if __IOS__
- path = "iOS";
- #else
- #if __TVOS__
- path = "tv";
- #else
- #if __WATCHOS__
- path = "watch";
- #endif
- return path;
- }
Add Comment
Please, Sign In to add comment