TargetPlatform Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This API is now deprecated.
Indicates the kind of OS Xamarin.Forms is currently working on.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete]
public enum TargetPlatform
type TargetPlatform =
- Inheritance
-
System.EnumTargetPlatform
- Attributes
-
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute
Fields
Name | Value | Description |
---|---|---|
Other | 0 | (Unused) Indicates that Xamarin.Forms is running on an undefined platform. |
iOS | 1 | Indicates that Xamarin.Forms is running on an Apple iOS OS. |
Android | 2 | Indicates that Xamarin.Forms is running on a Google Android OS. |
WinPhone | 3 | Indicates that Xamarin.Forms is running on a Microsoft WinPhone OS. |
Windows | 4 | Indicates that forms is running on the Windows platform. |