Compartilhar via


BatteryState.StatusCharging Field

Definition

Caution

This constant will be removed in the future version. Use Android.Hardware.BatteryStatus enum directly instead of this field.

Battery is charging.

[Android.Runtime.Register("STATUS_CHARGING", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.BatteryStatus enum directly instead of this field.", true)]
public const Android.Hardware.BatteryStatus StatusCharging = 2;
[<Android.Runtime.Register("STATUS_CHARGING", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.BatteryStatus enum directly instead of this field.", true)>]
val mutable StatusCharging : Android.Hardware.BatteryStatus

Field Value

Value = 2
Attributes

Remarks

Battery is charging.

Java documentation for android.hardware.BatteryState.STATUS_CHARGING.

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