Mono Class Library: MonoTouch.UIKit.UIDevice Overview | Members

MonoTouch.UIKit.UIDevice.BatteryLevel Property

The battery charge level for the device.

[get: MonoTouch.Foundation.Export("batteryLevel")]
public virtual float BatteryLevel { get; }

Value

Remarks

Battery level ranges from 0.0 (fully discharged) to 1.0 (100% charged). Before accessing this property, ensure that battery monitoring is enabled.

If battery monitoring is not enabled, battery state is UIDeviceBatteryStateUnknown and the value of this property is –1.0.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0