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
Creates a new instance of the OnPlatform<T> type.
The type as it is implemented on the Android platform.
Gets or sets the default value to use for the platform.
Gets or sets the type as it is implemented on the iOS platform.
Gets a list of the available platforms.
The type as it is implemented on the WinPhone platform.
|Implicit(OnPlatform<T> to T)||
Casts the type to the version that corresponds to the platform.