UIDevice.CurrentDevice Proprietà

Definizione

Restituisce l'istanza singleton UIDevice.

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

Valore della proprietà

Attributi

Commenti

Gli sviluppatori usano in genere una proprietà simile alla seguente:

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

Può essere usato da un thread in background.

Si applica a