Android.App.UiModeManager Class
This class provides access to the system uimode services.

See Also: UiModeManager Members

Syntax

[Android.Runtime.Register("android/app/UiModeManager", DoNotGenerateAcw=true)]
public class UiModeManager : Java.Lang.Object

Remarks

This class provides access to the system uimode services. These services allow applications to control UI modes of the device. It provides functionality to disable the car mode and it gives access to the night mode settings.

These facilities are built on top of the underlying Android.Content.Intent.ActionDockEvent broadcasts that are sent when the user physical places the device into and out of a dock. When that happens, the UiModeManager switches the system Android.Content.Res.Configuration to the appropriate UI mode, sends broadcasts about the mode switch, and starts the corresponding mode activity if appropriate. See the broadcasts UiModeManager.ActionEnterCarMode and UiModeManager.ActionEnterDeskMode for more information.

In addition, the user may manually switch the system to car mode without physically being in a dock. While in car mode -- whether by manual action from the user or being physically placed in a dock -- a notification is displayed allowing the user to exit dock mode. Thus the dock mode represented here may be different than the current state of the underlying dock event broadcast.

You do not instantiate this class directly; instead, retrieve it through Android.Content.Context.GetSystemService(string).

[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