OnPlatform<T> Class

Definition

Provides the platform-specific implementation of T for the current OS.

[Xamarin.Forms.ContentProperty("Platforms")]
public class OnPlatform<T>
type OnPlatform<'T> = class

Type Parameters

T
Inheritance
OnPlatform<T>
Attributes

Constructors

OnPlatform<T>()

Creates a new instance of the OnPlatform<T> type.

Properties

Android

The type as it is implemented on the Android platform.

Default

Gets or sets the default value to use for the platform.

iOS

Gets or sets the type as it is implemented on the iOS platform.

Platforms

Gets a list of the available platforms.

WinPhone

The type as it is implemented on the WinPhone platform.

Operators

Implicit(OnPlatform<T> to T)

Casts the type to the version that corresponds to the platform.

Applies to