Android.Content.Res.Configuration Members

The members of Android.Content.Res.Configuration are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Construct an invalid Configuration.
Makes a deep copy suitable for modification.

Public Fields

const
DensityDpiUndefinedint (0). Default value for Configuration.DensityDpi indicating that no width has been specified.
const
MncZeroint (65535). Constant used to to represent MNC (Mobile Network Code) zero. 0 cannot be used, since it is used to represent an undefined MNC.
const
ScreenHeightDpUndefinedScreen (0). Default value for Configuration.ScreenHeightDp indicating that no width has been specified.
const
ScreenWidthDpUndefinedScreen (0). Default value for Configuration.ScreenWidthDp indicating that no width has been specified.
const
SmallestScreenWidthDpUndefinedint (0). Default value for Configuration.SmallestScreenWidthDp indicating that no width has been specified.
const
UiModeNightMaskUiMode (48). Constant for Configuration.UiMode: bits that encode the night mode.
const
UiModeNightNoUiMode (16). Constant for Configuration.UiMode: a Configuration.UiModeNightMask value that corresponds to the notnight resource qualifier.
const
UiModeNightUndefinedUiMode (0). Constant for Configuration.UiMode: a Configuration.UiModeNightMask value indicating that no mode type has been set.
const
UiModeNightYesUiMode (32). Constant for Configuration.UiMode: a Configuration.UiModeNightMask value that corresponds to the night resource qualifier.
const
UiModeTypeApplianceUiMode (5). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value that corresponds to the appliance resource qualifier.
const
UiModeTypeCarUiMode (3). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value that corresponds to the car resource qualifier.
const
UiModeTypeDeskUiMode (2). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value that corresponds to the desk resource qualifier.
const
UiModeTypeMaskUiMode (15). Constant for Configuration.UiMode: bits that encode the mode type.
const
UiModeTypeNormalUiMode (1). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value that corresponds to no UI mode resource qualifier specified.
const
UiModeTypeTelevisionUiMode (4). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value that corresponds to the television resource qualifier.
const
UiModeTypeUndefinedUiMode (0). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value indicating that no mode type has been set.
const
UiModeTypeWatchUiMode (6). Constant for Configuration.UiMode: a Configuration.UiModeTypeMask value that corresponds to the watch resource qualifier.

Public Properties

[read-only]
static
CreatorAndroid.OS.IParcelableCreator.
DensityDpiint. The target screen density being rendered to, corresponding to density resource qualifier.
FontScalefloat. Current user preference for the scaling factor for fonts, relative to the base density scaling.
HardKeyboardHiddenHardKeyboardHidden. A flag indicating whether the hard keyboard has been hidden.
KeyboardKeyboardType. The kind of keyboard attached to the device.
KeyboardHiddenKeyboardHidden. A flag indicating whether any keyboard is available.
[read-only]
LayoutDirectionAndroid.Views.LayoutDirection. Return the layout direction.
LocaleJava.Util.Locale. Current user preference for the locale, corresponding to locale resource qualifier.
Mccint. IMSI MCC (Mobile Country Code), corresponding to mcc resource qualifier. 0 if undefined.
Mncint. IMSI MNC (Mobile Network Code), corresponding to mnc resource qualifier. 0 if undefined.
NavigationNavigation. The kind of navigation method available on the device.
NavigationHiddenNavigationHidden. A flag indicating whether any 5-way or DPAD navigation available.
OrientationOrientation. Overall orientation of the screen.
ScreenHeightDpint. The current height of the available screen space, in dp units, corresponding to screen height resource qualifier.
ScreenLayoutScreenLayout. Bit mask of overall layout of the screen.
ScreenWidthDpint. The current width of the available screen space, in dp units, corresponding to screen width resource qualifier.
SmallestScreenWidthDpint. The smallest screen size an application will see in normal operation, corresponding to smallest screen width resource qualifier.
TouchscreenTouchScreenType. The kind of touch screen attached to the device.
UiModeUiMode. Bit mask of the ui mode.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CompareTo(Configuration) : int
DescribeContents() : int
Parcelable methods
Diff(Configuration) : Android.Content.PM.ConfigChanges
Return a bit mask of the differences between this Configuration object and the given one.
Equals(Configuration) : bool
IsLayoutSizeAtLeast(int) : bool
Check if the Configuration's current Configuration.ScreenLayout is at least the given size.
static
NeedNewResources(Android.Content.PM.ConfigChanges, Android.Content.PM.ConfigChanges) : bool
Determine if a new resource needs to be loaded from the bit set of configuration changes returned by Configuration.UpdateFrom(Configuration).
ReadFromParcel(Android.OS.Parcel)
SetLayoutDirection(Java.Util.Locale)
Set the layout direction from the Locale.
SetLocale(Java.Util.Locale)
Set the locale.
SetTo(Configuration)
SetToDefaults()
Set this object to the system defaults.
UpdateFrom(Configuration) : Android.Content.PM.ConfigChanges
Copy the fields from delta into this Configuration object, keeping track of which ones have changed.
WriteToParcel(Android.OS.Parcel, Android.OS.ParcelableWriteFlags)
Flatten this object in to a Parcel.

Explicitly Implemented Interface Members

Java.Lang.IComparable.CompareToDocumentation for this section has not yet been entered.