Partager via


Configuration.UiMode Property

Definition

Bit mask of the ui mode.

[Android.Runtime.Register("uiMode")]
public Android.Content.Res.UiMode UiMode { get; set; }
[<Android.Runtime.Register("uiMode")>]
member this.UiMode : Android.Content.Res.UiMode with get, set

Property Value

Attributes

Remarks

Bit mask of the ui mode. Currently there are two fields:

The #UI_MODE_TYPE_MASK bits define the overall ui mode of the device. They may be one of #UI_MODE_TYPE_UNDEFINED, #UI_MODE_TYPE_NORMAL, #UI_MODE_TYPE_DESK, #UI_MODE_TYPE_CAR, #UI_MODE_TYPE_TELEVISION, #UI_MODE_TYPE_APPLIANCE, #UI_MODE_TYPE_WATCH, or #UI_MODE_TYPE_VR_HEADSET.

The #UI_MODE_NIGHT_MASK defines whether the screen is in a special mode. They may be one of #UI_MODE_NIGHT_UNDEFINED, #UI_MODE_NIGHT_NO or #UI_MODE_NIGHT_YES.

Java documentation for android.content.res.Configuration.uiMode.

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