Android.App.UiModeManager Members

The members of Android.App.UiModeManager are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
DisableCarModeGoHomeDisableCarModeFlags (1). Flag for use with UiModeManager.DisableCarMode(DisableCarModeFlags): go to the normal home activity as part of the disable.
const
EnableCarModeAllowSleepEnableCarModeFlags (2). Flag for use with UiModeManager.EnableCarMode(EnableCarModeFlags): allow sleep mode while in car mode.
const
EnableCarModeGoCarHomeEnableCarModeFlags (1). Flag for use with UiModeManager.EnableCarMode(EnableCarModeFlags): go to the car home activity as part of the enable.
const
ModeNightAutoUiNightMode (0). Constant for UiModeManager.NightMode and UiModeManager.NightMode: automatically switch night mode on and off based on the time.
const
ModeNightNoUiNightMode (1). Constant for UiModeManager.NightMode and UiModeManager.NightMode: never run in night mode.
const
ModeNightYesUiNightMode (2). Constant for UiModeManager.NightMode and UiModeManager.NightMode: always run in night mode.

Public Properties

static
ActionEnterCarModestring. Broadcast sent when the device's UI has switched to car mode, either by being placed in a car dock or explicit action of the user.
static
ActionEnterDeskModestring. Broadcast sent when the device's UI has switched to desk mode, by being placed in a desk dock.
static
ActionExitCarModestring. Broadcast sent when the device's UI has switch away from car mode back to normal mode.
static
ActionExitDeskModestring. Broadcast sent when the device's UI has switched away from desk mode back to normal mode.
[read-only]
CurrentModeTypeAndroid.Content.Res.UiMode. Return the current running mode type.
NightModeUiNightMode. Returns the currently configured night mode.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DisableCarMode(DisableCarModeFlags)
Turn off special mode if currently in car mode.
EnableCarMode(EnableCarModeFlags)
Force device into car mode, like it had been placed in the car dock.
static
FromContext(Android.Content.Context) : UiModeManager
Documentation for this section has not yet been entered.