iOS Guides | Samples

MonoTouch.UIKit.UIDeviceBatteryState Enumeration

An enumeration of values indicating the state of the battery.

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIDeviceBatteryState

Remarks

This is a qualitative description of the battery state (e.g., UIDeviceBatteryState.Charging). For a quantitative view of battery charge level, use UIDevice.BatteryLevel.

Members

Member NameDescription
Charging
Full
UnknownCan not determine the state of the battery.
Unplugged

Requirements

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

The members of MonoTouch.UIKit.UIDeviceBatteryState are listed below.

See Also: Enum

Public Fields