# TriggerInfo 作为[trigger](js-apis-app-ability-wantAgent.md#wantagenttrigger)的入参定义触发WantAgent所需要的信息。 > **说明:** > > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 ```ts import wantAgent from '@ohos.app.ability.wantAgent'; ``` **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core | 名称 | 类型 | 必填 | 说明 | | ---------- | --- |-------------------- | ----------- | | code | number | 是 | result code。 | | want | Want | 否 | Want。 | | permission | string | 否 | 权限定义。 | | extraInfo | {[key: string]: any} | 否 | 额外数据。 |