• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# TriggerInfo
2
3The **TriggerInfo** module defines the information required for triggering the WantAgent. The information is used as an input parameter of [trigger](js-apis-app-ability-wantAgent.md#wantagenttrigger).
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import wantAgent from '@ohos.app.ability.wantAgent';
13```
14
15**System capability**: SystemCapability.Ability.AbilityRuntime.Core
16
17| Name      | Type                | Mandatory| Description       |
18| ---------- | --- |-------------------- | ----------- |
19| code       | number               | Yes  | Result code.|
20| want       | Want                 | No  | Want.       |
21| permission | string               | No  | Permission.   |
22| extraInfo  | {[key: string]: any} | No  | Extra information.   |
23