Język

UiMode Enum

Definition

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 desk resource qualifier.

TypeCar 3

Indicates car UI mode, corresponding to the car resource qualifier.

TypeTelevision 4

Indicates television UI mode, corresponding to the television resource qualifier.

TypeAppliance 5

Indicates appliance UI mode, corresponding to the appliance resource qualifier.

TypeWatch 6

Indicates watch UI mode, corresponding to the watch resource qualifier.

TypeVrHeadset 7

Indicates VR-headset UI mode, corresponding to the vrheadset resource qualifier.

TypeMask 15

Constant for UiMode: bits that encode the mode type.

NightNo 16

Indicates that night mode is not active, corresponding to the notnight resource qualifier.

NightYes 32

Indicates that night mode is active, corresponding to the night resource qualifier.

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.

Applies to