UIKit.UIDevice.CurrentDevice Property
Returns the UIDevice singleton instance.

Syntax

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

Value

Remarks

Developers typically use property like this:

C# Example

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

This can be used from a background thread.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0