public final class IntentAgentInfo extends Object
IntentAgentHelper#getIntentAgent.
This class is used to encapsulate parameters requestCode, operationType,
flag, intents, and extraInfo. It is used as the input parameter for
the IntentAgentHelper#getIntentAgent method.
SystemCapability.Notification#ANS| 构造器 | 说明 |
|---|---|
IntentAgentInfo(int requestCode,
IntentAgentConstant.OperationType operationType,
List<IntentAgentConstant.Flags> flags,
List<Intent> intents,
IntentParams extraInfo) |
A constructor used to create an
IntentAgentInfo instance based on the input parameters. |
IntentAgentInfo(int requestCode,
IntentAgentConstant.OperationType operationType,
IntentAgentConstant.Flags flag,
List<Intent> intents,
IntentParams extraInfo) |
A constructor used to create an
IntentAgentInfo instance based on the input parameters. |
IntentAgentInfo(IntentAgentInfo paramInfo) |
A constructor used to create an
IntentAgentInfo instance by copying parameters from an existing one. |
public IntentAgentInfo(int requestCode,
IntentAgentConstant.OperationType operationType,
IntentAgentConstant.Flags flag,
List<Intent> intents,
IntentParams extraInfo)
IntentAgentInfo instance based on the input parameters.requestCode - Indicates the request code to set. It is a private value defined by the user.operationType - Indicates the type of the operation to be performed by the IntentAgent object.
For details about the value range, see IntentAgentConstant.OperationType.flag - Indicates the flag for handling the IntentAgent.
For details about the value range, see IntentAgentConstant.Flags.intents - Indicates the collection of Intent objects to be used for creating the IntentAgent
object. The number of intents in the collection is determined by IntentAgentConstant.OperationType.extraInfo - Indicates the extra information to be used for creating the IntentAgent object.public IntentAgentInfo(int requestCode,
IntentAgentConstant.OperationType operationType,
List<IntentAgentConstant.Flags> flags,
List<Intent> intents,
IntentParams extraInfo)
IntentAgentInfo instance based on the input parameters.requestCode - Indicates the request code to set. It is a private value defined by the user.operationType - Indicates the type of the operation to be performed by the IntentAgent object.
For details about the value range, see IntentAgentConstant.OperationType.flags - Indicates the flags for handling the IntentAgent.
For details about the value range, see IntentAgentConstant.Flags.intents - Indicates the collection of Intent objects to be used for creating the IntentAgent
object. The number of intents in the collection is determined by IntentAgentConstant.OperationType.extraInfo - Indicates the extra information to be used for creating the IntentAgent object.public IntentAgentInfo(IntentAgentInfo paramInfo)
IntentAgentInfo instance by copying parameters from an existing one.paramInfo - Indicates the existing IntentAgentInfo object.