UiMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types.
public enum UiMode
type UiMode =
- Inheritance
-
UiMode
Fields
| Name | Value | Description |
|---|---|---|
| NightUndefined | 0 | Constant for UiMode: a UiModeNightMaskvalue indicating that no mode type has been set. |
| TypeUndefined | 0 | Constant for UiMode: a UiModeTypeMaskvalue indicating that no mode type has been set. |
| TypeNormal | 1 | Indicates normal UI mode, with no UI mode resource qualifier. |
| TypeDesk | 2 | Indicates desk UI mode, corresponding to the |
| TypeCar | 3 | Indicates car UI mode, corresponding to the |
| TypeTelevision | 4 | Indicates television UI mode, corresponding to the |
| TypeAppliance | 5 | Indicates appliance UI mode, corresponding to the |
| TypeWatch | 6 | Indicates watch UI mode, corresponding to the |
| TypeVrHeadset | 7 | Indicates VR-headset UI mode, corresponding to the |
| TypeMask | 15 | Constant for UiMode: bits that encode the mode type. |
| NightNo | 16 | Indicates that night mode is not active, corresponding to the |
| NightYes | 32 | Indicates that night mode is active, corresponding to the |
| NightMask | 48 | Constant for UiMode: bits that encode the night mode. |
Remarks
Android platform documentation for android.content.res.Configuration.
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.