Share via


BatteryManager.ExtraPlugged Field

Definition

Extra for android.content.Intent#ACTION_BATTERY_CHANGED: integer indicating whether the device is plugged in to a power source; 0 means it is on battery, other constants are different types of power sources.

[Android.Runtime.Register("EXTRA_PLUGGED")]
public const string ExtraPlugged;
[<Android.Runtime.Register("EXTRA_PLUGGED")>]
val mutable ExtraPlugged : string

Field Value

Attributes

Remarks

Extra for android.content.Intent#ACTION_BATTERY_CHANGED: integer indicating whether the device is plugged in to a power source; 0 means it is on battery, other constants are different types of power sources.

Java documentation for android.os.BatteryManager.EXTRA_PLUGGED.

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