Share via


TargetPlatform Enum

Definition

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.Enum
TargetPlatform
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.

Applies to