Sequenceablepublic final class IntentAgent extends Object implements Sequenceable
This class does not provide constructors. Instead, you need to use the
IntentAgentHelper#getIntentAgent(Context, IntentAgentInfo) method to obtain an IntentAgent object,
and set the action to perform in IntentAgentInfo. After obtaining the IntentAgent object,
you can call the
IntentAgentHelper#triggerIntentAgent(Context, IntentAgent, IntentAgent.OnCompleted, EventHandler,
TriggerInfo) method to perform the action specified for the IntentAgent object immediately and call
IntentAgentHelper#cancel(IntentAgent) to cancel the IntentAgent object.
IntentAgentHelper,
IntentAgentInfoSystemCapability.Notification#ANS| 限定符和类型 | 类 | 说明 |
|---|---|---|
static interface |
IntentAgent.OnCompleted |
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<IntentAgent> |
PRODUCER |
Creates an
IntentAgent instance from a Parcel. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
marshalling(Parcel out) |
Marshals an
IntentAgent object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals an
IntentAgent object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<IntentAgent> PRODUCER
IntentAgent instance from a Parcel.public boolean marshalling(Parcel out)
IntentAgent object into a Parcel.
A process can call the unmarshalling(ohos.utils.Parcel) method to unmarshal an IntentAgent object from
a Parcel to implement inter-process communication (IPC).
marshalling 在接口中 Sequenceableout - Indicates the MessageParcel object for marshalling.
MessageParcel is a child class of Parcel.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
IntentAgent object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the MessageParcel object for marshalling.
MessageParcel is a child class of Parcel.true if the unmarshalling is successful; returns false otherwise.