OnPlatform<T> Class
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.
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
-
System.ObjectOnPlatform<T>
- Attributes
Constructors
OnPlatform<T>() |
Creates a new instance of the OnPlatform<T> type. |
Properties
Android |
Obsolete.
The type as it is implemented on the Android platform. |
Default |
Gets or sets the default value to use for the platform. |
iOS |
Obsolete.
Gets or sets the type as it is implemented on the iOS platform. |
Platforms |
Gets a list of the available platforms. |
WinPhone |
Obsolete.
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. |