Intent.ShortcutIconResource
  public
  static
  
  
  class
  Intent.ShortcutIconResource
  
    extends Object
  
  
  
  
  
      implements
      
        Parcelable
      
  
  
| java.lang.Object | |
| ↳ | android.content.Intent.ShortcutIconResource | 
Represents a shortcut/live folder icon resource.
See also:
Summary
| Inherited constants | 
|---|
| Fields | |
|---|---|
| 
    public
    static
    final
    Creator<Intent.ShortcutIconResource> | CREATORUsed to read a ShortcutIconResource from a Parcel. | 
| 
    public
    
    
    String | packageNameThe package name of the application containing the icon. | 
| 
    public
    
    
    String | resourceNameThe resource name of the icon, including package, name and type. | 
| Public constructors | |
|---|---|
| 
      ShortcutIconResource()
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        int | 
      describeContents()
      No special parcel contents. | 
| 
        
        
        static
        
        
        Intent.ShortcutIconResource | 
      fromContext(Context context, int resourceId)
      Creates a new ShortcutIconResource for the specified context and resource identifier. | 
| 
        
        
        
        
        
        String | 
      toString()
      Returns a string representation of the object. | 
| 
        
        
        
        
        
        void | 
      writeToParcel(Parcel dest, int flags)
      Flatten this object in to a Parcel. | 
| Inherited methods | |
|---|---|
Fields
CREATOR
public static final Creator<Intent.ShortcutIconResource> CREATOR
Used to read a ShortcutIconResource from a Parcel.
packageName
public String packageName
The package name of the application containing the icon.
resourceName
public String resourceName
The resource name of the icon, including package, name and type.
Public constructors
ShortcutIconResource
public ShortcutIconResource ()
Public methods
describeContents
public int describeContents ()
No special parcel contents.
| Returns | |
|---|---|
| int | a bitmask indicating the set of special object types marshaled
 by this Parcelable object instance.
 Value is either 0orCONTENTS_FILE_DESCRIPTOR | 
fromContext
public static Intent.ShortcutIconResource fromContext (Context context, int resourceId)
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. | 
| Returns | |
|---|---|
| Intent.ShortcutIconResource | A new ShortcutIconResource with the specified's context package name and icon resource identifier.`` | 
toString
public String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: The Parcel in which the object should be written.
 This value cannot benull. | 
| flags | int: Additional flags about how the object should be written.
 May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE.
 Value is either0or a combination ofParcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
