java.lang.Object | |
↳ | android.content.Intent.ShortcutIconResource |
Represents a shortcut/live folder icon resource.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<Intent.ShortcutIconResource> | CREATOR | Used to read a ShortcutIconResource from a Parcel. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
packageName | The package name of the application containing the icon. | ||||||||||
resourceName | The resource name of the icon, including package, name and type. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
No special parcel contents.
| |||||||||||
Creates a new ShortcutIconResource for the specified context and resource
identifier.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
|
Used to read a ShortcutIconResource from a Parcel.
The package name of the application containing the icon.
The resource name of the icon, including package, name and type.
No special parcel contents.
Creates a new ShortcutIconResource for the specified context and resource identifier.
context | The context of the application. |
---|---|
resourceId | The resource idenfitier for the icon. |
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())
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |