Xamarin.Forms Guides | Samples

Xamarin.Forms.TargetPlatform Enumeration

Indicates the kind of OS Forms is currently working on.

Syntax

public enum TargetPlatform

Remarks

Members

Member NameDescription
AndroidIndicates that Forms is running on a Google Android OS.
iOSIndicates that Forms is running on an Apple iOS OS.
Other(Unused) Indicates that Forms is running on an undefined platform.
WindowsIndicates that forms is running on the Windows platform.
WinPhoneIndicates that Forms is running on a Microsoft WinPhone OS.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.TargetPlatform are listed below.

See Also: Enum

Public Fields

AndroidTargetPlatform. Indicates that Forms is running on a Google Android OS.
iOSTargetPlatform. Indicates that Forms is running on an Apple iOS OS.
OtherTargetPlatform. (Unused) Indicates that Forms is running on an undefined platform.
WindowsTargetPlatform. Indicates that forms is running on the Windows platform.
WinPhoneTargetPlatform. Indicates that Forms is running on a Microsoft WinPhone OS.