Sequenceablepublic class ShortcutIntent extends Object implements Sequenceable
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<ShortcutIntent> |
PRODUCER |
Creates a
ShortcutIntent instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
ShortcutIntent() |
Default constructor used to create a ShortcutIntent instance.
|
ShortcutIntent(String targetBundle,
String targetClass) |
A constructor used to create a ShortcutIntent instance by target bundle and class.
|
ShortcutIntent(ShortcutIntent source) |
A constructor used to create a ShortcutIntent instance by copying parameters from an
existing one.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addParam(String key,
String value) |
Add a parameter in key-value pair format.
|
Map<String,String> |
getParams() |
Get key-value parameters.
|
String |
getTargetBundle() |
Obtains the name of the bundle to which the target ability of this shortcut belongs.
|
String |
getTargetClass() |
Obtains the class name of the target ability.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
void |
setTargetBundle(String targetBundle) |
Sets the name of the bundle to which the target ability of this shortcut belongs.
|
void |
setTargetClass(String targetClass) |
Sets the class name of the target ability.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<ShortcutIntent> PRODUCER
ShortcutIntent instance from a Parcel.public ShortcutIntent()
public ShortcutIntent(ShortcutIntent source)
source - Indicates the ShortcutIntent object.public void setTargetBundle(String targetBundle)
targetBundle - Indicates the bundle name.public String getTargetBundle()
public void setTargetClass(String targetClass)
targetClass - Indicates the class name.public String getTargetClass()
public Map<String,String> getParams()
public void addParam(String key, String value)
key - Indicates the key matching the parameter.value - Indicates the value of the parameter.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.