Added in API level 3

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 reqGlEsVersion;

static Int

Value for reqInputFeatures: if set, indicates that the application requires a five way navigation device

static Int

Value for reqInputFeatures: if set, indicates that the application requires a hard keyboard

Inherited constants
Public constructors

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

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

Added in API level 4
static val GL_ES_VERSION_UNDEFINED: Int

Default value for reqGlEsVersion;

Value: 0

INPUT_FEATURE_FIVE_WAY_NAV

Added in API level 3
static val INPUT_FEATURE_FIVE_WAY_NAV: Int

Value for reqInputFeatures: if set, indicates that the application requires a five way navigation device

Value: 2

INPUT_FEATURE_HARD_KEYBOARD

Added in API level 3
static val INPUT_FEATURE_HARD_KEYBOARD: Int

Value for reqInputFeatures: if set, indicates that the application requires a hard keyboard

Value: 1

Public constructors

ConfigurationInfo

Added in API level 3
ConfigurationInfo()

ConfigurationInfo

Added in API level 3
ConfigurationInfo(orig: ConfigurationInfo!)

Public methods

describeContents

Added in API level 3
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

Added in API level 4
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

Added in API level 3
open fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 3
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

CREATOR

Added in API level 3
static val CREATOR: Parcelable.Creator<ConfigurationInfo!>

reqGlEsVersion

Added in API level 4
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

Added in API level 3
var reqInputFeatures: Int

Flags associated with the input features. Any combination of INPUT_FEATURE_HARD_KEYBOARD, INPUT_FEATURE_FIVE_WAY_NAV