Share via


UIDevice.CurrentDevice Propiedad

Definición

Devuelve la instancia singleton uiDevice.

public static UIKit.UIDevice CurrentDevice { [Foundation.Export("currentDevice")] get; }
member this.CurrentDevice : UIKit.UIDevice

Valor de propiedad

Atributos

Comentarios

Normalmente, los desarrolladores usan propiedades como esta:

var device = UIDevice.CurrentDevice;
Console.WriteLine (device.BatteryLevel);

Se puede usar desde un subproceso en segundo plano.

Se aplica a