Skip to content

Most visited

Recently visited

navigation
Added in API level 5

FeatureInfo

public class FeatureInfo
extends Object implements Parcelable

java.lang.Object
   ↳ android.content.pm.FeatureInfo


A single feature that can be requested by an application. This corresponds to information collected from the AndroidManifest.xml's tag.

Summary

Constants

int FLAG_REQUIRED

Set on flags if this feature has been required by the application.

int GL_ES_VERSION_UNDEFINED

Default value for reqGlEsVersion;

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<FeatureInfo> CREATOR

public int flags

Additional flags.

public String name

The name of this feature, for example "android.hardware.camera".

public int reqGlEsVersion

The GLES version used by an application.

Public constructors

FeatureInfo()
FeatureInfo(FeatureInfo orig)

Public methods

int describeContents()

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

String getGlEsVersion()

This method extracts the major and minor version of reqGLEsVersion attribute and returns it as a string.

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.

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

Constants

FLAG_REQUIRED

Added in API level 5
int FLAG_REQUIRED

Set on flags if this feature has been required by the application.

Constant Value: 1 (0x00000001)

GL_ES_VERSION_UNDEFINED

Added in API level 5
int GL_ES_VERSION_UNDEFINED

Default value for reqGlEsVersion;

Constant Value: 0 (0x00000000)

Fields

CREATOR

Added in API level 5
Creator<FeatureInfo> CREATOR

flags

Added in API level 5
int flags

Additional flags. May be zero or more of FLAG_REQUIRED.

name

Added in API level 5
String name

The name of this feature, for example "android.hardware.camera". If this is null, then this is an OpenGL ES version feature as described in reqGlEsVersion.

reqGlEsVersion

Added in API level 5
int reqGlEsVersion

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. Only valid if name is null.

Public constructors

FeatureInfo

Added in API level 5
FeatureInfo ()

FeatureInfo

Added in API level 5
FeatureInfo (FeatureInfo orig)

Parameters
orig FeatureInfo

Public methods

describeContents

Added in API level 5
int describeContents ()

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

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

getGlEsVersion

Added in API level 5
String getGlEsVersion ()

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

Returns
String String representation of the reqGlEsVersion attribute

toString

Added in API level 5
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 is equivalent to the following expression:

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

See Writing a useful toString method if you intend implementing your own toString method.

Returns
String a printable representation of this object.

writeToParcel

Added in API level 5
void writeToParcel (Parcel dest, 
                int parcelableFlags)

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written.
parcelableFlags int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.