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
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.
The font scaling factor has changed — the user has selected a new global font size.
The keyboard type has changed — for example, the user has plugged in an external keyboard.
The keyboard accessibility has changed — for example, the user hasrevealed the hardware keyboard.
The layout direction has changed — for example, changing from left-to-right (LTR) to right-to-left (RTL). Added in API level 17.
The locale has changed — the user has selected a new language that text should be displayed in.
The IMSI mobile country code (MCC) has changed — a SIM has been detected and updated the MCC.
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.)
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.
The screen layout has changed — a different display might now be active.
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.
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
The touchscreen has changed. (This should never normally happen.)
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]Auto Trait Implementations
impl RefUnwindSafe for ConfigChanges
impl Send for ConfigChanges
impl Sync for ConfigChanges
impl Unpin for ConfigChanges
impl UnwindSafe for ConfigChanges
Blanket Implementations
Mutably borrows from an owned value. Read more