ShortcutIconResource
open class ShortcutIconResource : Parcelable
| kotlin.Any | |
| ↳ | android.content.Intent.ShortcutIconResource | 
Represents a shortcut/live folder icon resource.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open Int | No special parcel contents. | 
| open static Intent.ShortcutIconResource! | fromContext(context: Context!, resourceId: Int)Creates a new ShortcutIconResource for the specified context and resource identifier. | 
| open String | toString() | 
| open Unit | writeToParcel(dest: Parcel, flags: Int) | 
| Properties | |
|---|---|
| static Parcelable.Creator<Intent.ShortcutIconResource!> | Used to read a ShortcutIconResource from a Parcel. | 
| String! | The package name of the application containing the icon. | 
| String! | The resource name of the icon, including package, name and type. | 
Public constructors
ShortcutIconResource
ShortcutIconResource()
Public methods
describeContents
open fun describeContents(): Int
No special parcel contents.
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
fromContext
open static fun fromContext(
context: Context!,
resourceId: Int
): Intent.ShortcutIconResource!
Creates a new ShortcutIconResource for the specified context and resource identifier.
| Parameters | |
|---|---|
| context | Context!: The context of the application. | 
| resourceId | Int: The resource identifier for the icon. | 
| Return | |
|---|---|
| Intent.ShortcutIconResource! | A new ShortcutIconResource with the specified's context package name and icon resource identifier.`` | 
toString
open fun toString(): String
| Return | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
open fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
| Parameters | |
|---|---|
| dest | Parcel: The Parcel in which the object should be written. This value cannot be null. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<Intent.ShortcutIconResource!>
Used to read a ShortcutIconResource from a Parcel.
packageName
var packageName: String!
The package name of the application containing the icon.
resourceName
var resourceName: String!
The resource name of the icon, including package, name and type.
