Settings.Global.StayOnWhilePluggedIn Field

Definition

Whether we keep the device on while the device is plugged in.

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

Field Value

Attributes

Remarks

Whether we keep the device on while the device is plugged in. Supported values are: <ul> <li>0 to never stay on while plugged in</li> <li>BatteryManager#BATTERY_PLUGGED_AC to stay on for AC charger</li> <li>BatteryManager#BATTERY_PLUGGED_USB to stay on for USB charger</li> <li>BatteryManager#BATTERY_PLUGGED_WIRELESS to stay on for wireless charger</li> <li>BatteryManager#BATTERY_PLUGGED_DOCK to stay on for dock charger</li> </ul> These values can be OR-ed together.

Java documentation for android.provider.Settings.Global.STAY_ON_WHILE_PLUGGED_IN.

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