Device.OS Device.OS Property

Definition

Warning

This API is now obsolete.

Gets the TargetPlatform indicating the OS Xamarin.Forms is working on.

[System.Obsolete("TargetPlatform is obsolete as of version 2.3.4. Please use RuntimePlatform instead.")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Xamarin.Forms.TargetPlatform OS { get; }
member this.OS : Xamarin.Forms.TargetPlatform

Property Value

A TargetPlatform that indicates the current OS.

Applies to