UIDevice.CurrentDevice UIDevice.CurrentDevice Property

Definition

Returns the UIDevice singleton instance.

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

Property Value

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