Enum android_manifest::ConfigChanges
source · pub enum ConfigChanges {
Show 15 variants
Density,
FontScale,
Keyboard,
KeyboardHidden,
LayoutDirection,
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.
LayoutDirection
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.
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§
source§impl Clone for ConfigChanges
impl Clone for ConfigChanges
source§fn clone(&self) -> ConfigChanges
fn clone(&self) -> ConfigChanges
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigChanges
impl Debug for ConfigChanges
source§impl Default for ConfigChanges
impl Default for ConfigChanges
source§fn default() -> ConfigChanges
fn default() -> ConfigChanges
source§impl<'de> Deserialize<'de> for ConfigChanges
impl<'de> Deserialize<'de> for ConfigChanges
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<ConfigChanges> for ConfigChanges
impl PartialEq<ConfigChanges> for ConfigChanges
source§fn eq(&self, other: &ConfigChanges) -> bool
fn eq(&self, other: &ConfigChanges) -> bool
self
and other
values to be equal, and is used
by ==
.