Language

BatteryState.Status Property

Definition

Get the battery status.

public abstract int Status { [Android.Runtime.Register("getStatus", "()I", "GetGetStatusHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getStatus", "()I", "GetGetStatusHandler", ApiSince=31)>]
member this.Status : int

Property Value

the battery status. Value is one of the following: STATUS_UNKNOWN; STATUS_CHARGING; STATUS_DISCHARGING; STATUS_NOT_CHARGING; STATUS_FULL

Attributes

Remarks

Get the battery status.

Android reference for android.hardware.BatteryState.getStatus.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to