Android.App.UiModeManager.EnableCarModeAllowSleep Field
Flag for use with UiModeManager.EnableCarMode(EnableCarModeFlags): allow sleep mode while in car mode.

Value: 2

Syntax

[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.")]
public const EnableCarModeFlags EnableCarModeAllowSleep

Remarks

Flag for use with UiModeManager.EnableCarMode(EnableCarModeFlags): 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.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8