ConfigChanges 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 and taken as a parameter of the F:Android.Content.Res.Configuration.NeedNewResources, and F:Android.Content.Res.Configuration.NeedNewResources members.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum ConfigChanges
[<System.Flags>]
type ConfigChanges =
- Inheritance
-
ConfigChanges
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| AssetsPaths | -2147483648 | Bit in configChanges that indicates that the activity can itself handle asset path changes. Set from the R.attr.configChanges attribute. This is not a core resource configuration, but a higher-level value, so its constant starts at the high bits. Android reference for 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. |
| Mcc | 1 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the IMSI MCC. |
| Mnc | 2 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the IMSI MNC. |
| Locale | 4 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the locale. |
| Touchscreen | 8 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the touchscreen type. |
| Keyboard | 16 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the keyboard type. |
| 32 | Bit in configChanges that indicates that the activity can itself handle changes to the keyboard or navigation being hidden/exposed. Note that inspite of the name, this applies to the changes to any hidden states: keyboard or navigation. Set from the R.attr.configChanges attribute. Android reference for 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. |
|
| Navigation | 64 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the navigation type. |
| Orientation | 128 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the screen orientation. |
| ScreenLayout | 256 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the screen layout. |
| UiMode | 512 | Bit in ConfigChangesthat indicates that the activity can itself handle the ui mode. |
| ScreenSize | 1024 | Bit in ConfigChangesthat indicates that the activity can itself handle the screen size. |
| SmallestScreenSize | 2048 | Bit in ConfigChangesthat indicates that the activity can itself handle the smallest screen size. |
| Density | 4096 | Bit in ConfigChangesthat indicates that the activity can itself handle density changes. |
| LayoutDirection | 8192 | Bit in ConfigChangesthat indicates that the activity can itself handle the change to layout direction. |
| ColorMode | 16384 | Bit in configChanges that indicates that the activity can itself handle the change to the display color gamut or dynamic range. Set from the R.attr.configChanges attribute. Android reference for 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. |
| GrammaticalGender | 32768 | Bit in configChanges that indicates that the activity can itself handle the change to gender. Set from the R.attr.configChanges attribute. Android reference for 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. |
| ResourcesUnused | 134217728 | This is probably not the constant you want, the resources compiler supports a less dangerous version of it, 'allKnown', that only suppresses all currently existing configuration change restarts depending on your target SDK rather than whatever the latest SDK supports, allowing the application to work with resources on future Platform versions. Bit in configChanges that indicates that the activity doesn't use Android Resources at all and doesn't need to be restarted on any configuration changes. This bit disables all restarts for configuration dimensions available in the current target SDK as well as dimensions introduced in future SDKs. Use it only if the activity doesn't need anything from its resources, and doesn't depend on any libraries that may provide resources and need to respond to configuration changes. When set, Activity.onConfigurationChanged(Configuration) will be called instead of a restart, and it’s up to the implementation to ensure that no stale resource values remain loaded anywhere in the code. This overrides all other bits, and this is recommended to be used individually. This is not a core resource configuration, but a higher-level value, so its constant starts at the high bits. Android reference for 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. |
| FontWeightAdjustment | 268435456 | Bit in configChanges that indicates that the activity can itself handle changes to font weight. Set from the R.attr.configChanges attribute. This is not a core resource configuration, but a higher-level value, so its constant starts at the high bits. Android reference for 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. |
| FontScale | 1073741824 | Bit in ConfigChangesthat indicates that the activity can itself handle changes to the font scaling factor. |
Remarks
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.