IntentAgent provides a pending intent mechanism to perform an action only when certain conditions
are met or certain events are triggered. For example, after you receive a notification, a new ability will
be triggered only if you click this notification. The actions to be performed include abilities and common events.
When you send an IntentAgent to another application,
the application is granted all the permissions you have.
You can obtain a different IntentAgent only if a different request code is carried
in the IntentAgentInfo object or the intents in the previous and new IntentAgentInfo objects
are found different by using Intent.equals(Object).
| 接口 | 说明 |
|---|---|
| IntentAgent.OnCompleted |
| 类 | 说明 |
|---|---|
| IntentAgent |
Provides a pending intent mechanism to perform an action only when certain conditions are met or
certain events are triggered.
|
| IntentAgentConstant |
Provides enumerated constants that are used for setting object attributes in the methods provided by
IntentAgentInfo. |
| IntentAgentHelper |
A helper class used to obtain, trigger, cancel, and compare
IntentAgent objects and to obtain
the bundle name, UID, and hash code value of an IntentAgent object. |
| IntentAgentInfo |
A parametric class that contains the parameters required by
IntentAgentHelper#getIntentAgent. |
| TriggerInfo |
A parametric class that contains the parameters required by
IntentAgentHelper#triggerIntentAgent. |
| TriggerInfo.Builder |
A builder class for
TriggerInfo objects. |
| 枚举 | 说明 |
|---|---|
| IntentAgentConstant.Flags |
Enumerates flags for using an
IntentAgent. |
| IntentAgentConstant.OperationType |
Identifies the operation for using an
IntentAgent, such as starting an ability or sending a common event. |