Compartilhar via


UIDevice.CurrentDevice Propriedade

Definição

Retorna a instância singleton UIDevice.

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

Valor da propriedade

Atributos

Comentários

Os desenvolvedores normalmente usam uma propriedade como esta:

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

Isso pode ser usado em um thread em segundo plano.

Aplica-se a