public class

ConfigurationInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ android.content.pm.ConfigurationInfo

Class Overview

Information you can retrieve about hardware configuration preferences declared by an application. This corresponds to information collected from the AndroidManifest.xml's <uses-configuration> tags.

Summary

Constants
Creator<ConfigurationInfo> CREATOR
int INPUT_FEATURE_FIVE_WAY_NAV Value for reqInputFeatures: if set, indicates that the application requires a five way navigation device
int INPUT_FEATURE_HARD_KEYBOARD Value for reqInputFeatures: if set, indicates that the application requires a hard keyboard
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public int reqInputFeatures Flags associated with the input features.
public int reqKeyboardType Application's input method preference.
public int reqNavigation A flag indicating whether any keyboard is available.
public int reqTouchScreen The kind of touch screen attached to the device.
Public Constructors
ConfigurationInfo()
ConfigurationInfo(ConfigurationInfo orig)
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
String toString()
Returns a string containing a concise, human-readable description of this object.
void writeToParcel(Parcel dest, int parcelableFlags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final Creator<ConfigurationInfo> CREATOR

public static final int INPUT_FEATURE_FIVE_WAY_NAV

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

Constant Value: 2 (0x00000002)

public static final int INPUT_FEATURE_HARD_KEYBOARD

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

Constant Value: 1 (0x00000001)

Fields

public int reqInputFeatures

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

public int reqKeyboardType

Application's input method preference. One of: KEYBOARD_UNDEFINED, KEYBOARD_NOKEYS, KEYBOARD_QWERTY, KEYBOARD_12KEY

public int reqNavigation

A flag indicating whether any keyboard is available. one of: NAVIGATION_UNDEFINED, NAVIGATION_DPAD, NAVIGATION_TRACKBALL, NAVIGATION_WHEEL

public int reqTouchScreen

The kind of touch screen attached to the device. One of: TOUCHSCREEN_NOTOUCH, TOUCHSCREEN_STYLUS, TOUCHSCREEN_FINGER.

Public Constructors

public ConfigurationInfo ()

public ConfigurationInfo (ConfigurationInfo orig)

Public Methods

public int describeContents ()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public String toString ()

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation simply concatenates the class name, the '@' sign and a hexadecimal representation of the object's hashCode(), that is, it is equivalent to the following expression:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a printable representation of this object.

public void writeToParcel (Parcel dest, int parcelableFlags)

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
parcelableFlags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.