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 |
|---|
android.os.Parcelable
|
Fields | |
|---|---|
public
static
final
Creator<Intent.ShortcutIconResource> |
CREATOR
Used to read a ShortcutIconResource from a Parcel. |
public
String |
packageName
The package name of the application containing the icon. |
public
String |
resourceName
The resource name of the icon, including package, name and type. |
Public constructors | |
|---|---|
Intent.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 | |
|---|---|
java.lang.Object
| |
android.os.Parcelable
| |
Fields
CREATOR
Creator<Intent.ShortcutIconResource> CREATOR
Used to read a ShortcutIconResource from a Parcel.
packageName
String packageName
The package name of the application containing the icon.
resourceName
String resourceName
The resource name of the icon, including package, name and type.
Public constructors
Public methods
describeContents
int describeContents ()
No special parcel contents.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. |
fromContext
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
String toString ()
Returns a string representation of the object. In general, the
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
| Returns | |
|---|---|
String |
a string representation of the object. |
writeToParcel
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. |
flags |
int: Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
|
Interfaces
- ClipboardManager.OnPrimaryClipChangedListener
- ComponentCallbacks
- ComponentCallbacks2
- ContentProvider.PipeDataWriter
- DialogInterface
- DialogInterface.OnCancelListener
- DialogInterface.OnClickListener
- DialogInterface.OnDismissListener
- DialogInterface.OnKeyListener
- DialogInterface.OnMultiChoiceClickListener
- DialogInterface.OnShowListener
- EntityIterator
- IntentSender.OnFinished
- Loader.OnLoadCanceledListener
- Loader.OnLoadCompleteListener
- ServiceConnection
- SharedPreferences
- SharedPreferences.Editor
- SharedPreferences.OnSharedPreferenceChangeListener
- SyncStatusObserver
Classes
- AbstractThreadedSyncAdapter
- AsyncQueryHandler
- AsyncQueryHandler.WorkerArgs
- AsyncQueryHandler.WorkerHandler
- AsyncTaskLoader
- BroadcastReceiver
- BroadcastReceiver.PendingResult
- ClipboardManager
- ClipData
- ClipData.Item
- ClipDescription
- ComponentName
- ContentProvider
- ContentProviderClient
- ContentProviderOperation
- ContentProviderOperation.Builder
- ContentProviderResult
- ContentQueryMap
- ContentResolver
- ContentUris
- ContentValues
- Context
- ContextWrapper
- CursorLoader
- Entity
- Entity.NamedContentValues
- Intent
- Intent.FilterComparison
- Intent.ShortcutIconResource
- IntentFilter
- IntentFilter.AuthorityEntry
- IntentSender
- Loader
- Loader.ForceLoadContentObserver
- MutableContextWrapper
- PeriodicSync
- QuickViewConstants
- RestrictionEntry
- RestrictionsManager
- SearchRecentSuggestionsProvider
- SyncAdapterType
- SyncContext
- SyncInfo
- SyncRequest
- SyncRequest.Builder
- SyncResult
- SyncStats
- UriMatcher
- UriPermission
Exceptions