Edytuj

Udostępnij za pośrednictwem


UIDevice.CurrentDevice Property

Definition

Returns the UIDevice singleton instance.

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

Property Value

Attributes

Remarks

Developers typically use property like this:

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

This can be used from a background thread.

Applies to