BatteryManager.ActionDischarging Field

Definition

Sent when the device's battery may be discharging, so apps should avoid doing extraneous work that would cause it to discharge faster.

[Android.Runtime.Register("ACTION_DISCHARGING", ApiSince=23)]
public const string ActionDischarging;
[<Android.Runtime.Register("ACTION_DISCHARGING", ApiSince=23)>]
val mutable ActionDischarging : string

Field Value

Attributes

Remarks

Sent when the device's battery may be discharging, so apps should avoid doing extraneous work that would cause it to discharge faster.

This is paired with #ACTION_CHARGING. The current state can always be retrieved with #isCharging().

Java documentation for android.os.BatteryManager.ACTION_DISCHARGING.

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