Condividi tramite


UiModeManager.EnableCarModeAllowSleep Field

Definition

Caution

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

Flag for use with #enableCarMode(int): allow sleep mode while in car mode.

[Android.Runtime.Register("ENABLE_CAR_MODE_ALLOW_SLEEP")]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.EnableCarModeFlags enum directly instead of this field.", true)]
public const Android.App.EnableCarModeFlags EnableCarModeAllowSleep = 2;
[<Android.Runtime.Register("ENABLE_CAR_MODE_ALLOW_SLEEP")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.EnableCarModeFlags enum directly instead of this field.", true)>]
val mutable EnableCarModeAllowSleep : Android.App.EnableCarModeFlags

Field Value

Value = 2
Attributes

Remarks

Flag for use with #enableCarMode(int): allow sleep mode while in car mode. By default, when this flag is not set, the system may hold a full wake lock to keep the screen turned on and prevent the system from entering sleep mode while in car mode. Setting this flag disables such behavior and the system may enter sleep mode if there is no other user activity and no other wake lock held. Setting this flag can be relevant for a car dock application that does not require the screen kept on.

Java documentation for android.app.UiModeManager.ENABLE_CAR_MODE_ALLOW_SLEEP.

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