Enum android_manifest::ConfigChanges[][src]

pub enum ConfigChanges {
Show variants Density, FontScale, Keyboard, KeyboardHidden, LayoutDiraction, Locale, Mcc, Mnc, Navigation, Orientation, ScreenLayout, ScreenSize, SmallestScreenSize, Touchscreen, UiMode,
}
Expand description

Lists configuration changes that the activity will handle itself.

Variants

Density

The display density has changed — the user might have specified a different display scale, or a different display might now be active. Added in API level 24.

FontScale

The font scaling factor has changed — the user has selected a new global font size.

Keyboard

The keyboard type has changed — for example, the user has plugged in an external keyboard.

KeyboardHidden

The keyboard accessibility has changed — for example, the user hasrevealed the hardware keyboard.

LayoutDiraction

The layout direction has changed — for example, changing from left-to-right (LTR) to right-to-left (RTL). Added in API level 17.

Locale

The locale has changed — the user has selected a new language that text should be displayed in.

Mcc

The IMSI mobile country code (MCC) has changed — a SIM has been detected and updated the MCC.

Mnc

The IMSI mobile network code (MNC) has changed — a SIM has been detected and updated the MNC.

Navigation

The navigation type (trackball/dpad) has changed. (This should never normally happen.)

Orientation

The screen orientation has changed — the user has rotated the device.

Note

If your application targets Android 3.2 (API level 13) or higher, then you should also declare the “screenSize” and “screenLayout” configurations, because they might also change when a device switches between portrait and landscape orientations.

ScreenLayout

The screen layout has changed — a different display might now be active.

ScreenSize

The current available screen size has changed. This represents a change in the currently available size, relative to the current aspect ratio, so will change when the user switches between landscape and portrait. Added in API level 13.

SmallestScreenSize

The physical screen size has changed. This represents a change in size regardless of orientation, so will only change when the actual physical screen size has changed such as switching to an external display. A change to this configuration corresponds to a change in the smallestWidth configuration. Added in API level 13

Touchscreen

The touchscreen has changed. (This should never normally happen.)

UiMode

The user interface mode has changed — the user has placed the device into a desk or car dock, or the night mode has changed. For more information about the different UI modes, see UiModeManager. Added in API level 8.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.