BatteryManager.IsCharging Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.