Added in API level 1

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

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

Added in API level 1
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 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

fromContext

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

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

writeToParcel

Added in API level 1
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 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 1
static val CREATOR: Parcelable.Creator<Intent.ShortcutIconResource!>

Used to read a ShortcutIconResource from a Parcel.

packageName

Added in API level 1
var packageName: String!

The package name of the application containing the icon.

resourceName

Added in API level 1
var resourceName: String!

The resource name of the icon, including package, name and type.