Share via


BatteryManager.IsCharging Property

Definition

Return true if the battery is currently considered to be charging.

public virtual bool IsCharging { [Android.Runtime.Register("isCharging", "()Z", "GetIsChargingHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("isCharging", "()Z", "GetIsChargingHandler", ApiSince=23)>]
member this.IsCharging : bool

Property Value

Attributes

Remarks

Return true if the battery is currently considered to be charging. This means that the device is plugged in and is supplying sufficient power that the battery level is going up (or the battery is fully charged). Changes in this state are matched by broadcasts of #ACTION_CHARGING and #ACTION_DISCHARGING.

Java documentation for android.os.BatteryManager.isCharging().

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