UIDevice.CurrentDevice Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.