• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# WantAgentInfo
2
3The **WantAgentInfo** module defines the information required for triggering a **WantAgent** object. The information can be used as an input parameter in [getWantAgent](js-apis-app-ability-wantAgent.md#wantagentgetwantagent) to obtain a specified **WantAgent** object.
4
5**System capability**: SystemCapability.Ability.AbilityRuntime.Core
6
7| Name          | Type                           | Mandatory| Description                  |
8| -------------- | ------------------------------- | ---- | ---------------------- |
9| wants          | Array\<Want\>                   | Yes  | Array of all **Want** objects.    |
10| operationType  | [wantAgent.OperationType](js-apis-app-ability-wantAgent.md#operationtype)         | Yes  | Operation type.              |
11| requestCode    | number                          | Yes  | Request code defined by the user.|
12| wantAgentFlags | Array<[wantAgent.WantAgentFlags](js-apis-app-ability-wantAgent.md#wantagentflags)> | No  | Array of flags for using the **WantAgent** object.          |
13| extraInfo      | {[key: string]: any}            | No  | Extra information.              |
14