ConfigurationInfo
open class ConfigurationInfo : Parcelable
| kotlin.Any | |
| ↳ | android.content.pm.ConfigurationInfo |
Information you can retrieve about hardware configuration preferences declared by an application. This corresponds to information collected from the AndroidManifest.xml's <uses-configuration> and <uses-feature> tags.
Summary
| Constants | |
|---|---|
| static Int |
Default value for |
| static Int |
Value for |
| static Int |
Value for |
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
ConfigurationInfo(orig: ConfigurationInfo!) |
|
| Public methods | |
|---|---|
| open Int | |
| open String! |
This method extracts the major and minor version of reqGLEsVersion attribute and returns it as a string. |
| open String |
toString() |
| open Unit |
writeToParcel(dest: Parcel, parcelableFlags: Int) |
| Properties | |
|---|---|
| static Parcelable.Creator<ConfigurationInfo!> | |
| Int |
The GLES version used by an application. |
| Int |
Flags associated with the input features. |
| Int |
Application's input method preference. |
| Int |
A flag indicating whether any keyboard is available. |
| Int |
The kind of touch screen attached to the device. |
Constants
GL_ES_VERSION_UNDEFINED
static val GL_ES_VERSION_UNDEFINED: Int
Default value for reqGlEsVersion;
Value: 0INPUT_FEATURE_FIVE_WAY_NAV
static val INPUT_FEATURE_FIVE_WAY_NAV: Int
Value for reqInputFeatures: if set, indicates that the application requires a five way navigation device
Value: 2INPUT_FEATURE_HARD_KEYBOARD
static val INPUT_FEATURE_HARD_KEYBOARD: Int
Value for reqInputFeatures: if set, indicates that the application requires a hard keyboard
Value: 1Public constructors
Public methods
describeContents
open fun describeContents(): Int
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getGlEsVersion
open fun getGlEsVersion(): String!
This method extracts the major and minor version of reqGLEsVersion attribute and returns it as a string. Say reqGlEsVersion value of 0x00010002 is returned as 1.2
| Return | |
|---|---|
String! |
String representation of the reqGlEsVersion attribute |
toString
open fun toString(): String
| Return | |
|---|---|
String |
a string representation of the object. |
writeToParcel
open fun writeToParcel(
dest: Parcel,
parcelableFlags: Int
): Unit
| Parameters | |
|---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null. |
flags |
Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
reqGlEsVersion
var reqGlEsVersion: Int
The GLES version used by an application. The upper order 16 bits represent the major version and the lower order 16 bits the minor version.
reqInputFeatures
var reqInputFeatures: Int
Flags associated with the input features. Any combination of INPUT_FEATURE_HARD_KEYBOARD, INPUT_FEATURE_FIVE_WAY_NAV
reqKeyboardType
var reqKeyboardType: Int
Application's input method preference. One of: android.content.res.Configuration#KEYBOARD_UNDEFINED, android.content.res.Configuration#KEYBOARD_NOKEYS, android.content.res.Configuration#KEYBOARD_QWERTY, android.content.res.Configuration#KEYBOARD_12KEY
reqNavigation
var reqNavigation: Int
A flag indicating whether any keyboard is available. one of: android.content.res.Configuration#NAVIGATION_UNDEFINED, android.content.res.Configuration#NAVIGATION_DPAD, android.content.res.Configuration#NAVIGATION_TRACKBALL, android.content.res.Configuration#NAVIGATION_WHEEL
reqTouchScreen
var reqTouchScreen: Int
The kind of touch screen attached to the device. One of: android.content.res.Configuration#TOUCHSCREEN_NOTOUCH, android.content.res.Configuration#TOUCHSCREEN_STYLUS, android.content.res.Configuration#TOUCHSCREEN_FINGER.