1e41f4b71Sopenharmony_ci# @ohos.app.ability.insightIntent (insightIntent) 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci本模块提供意图调用基础能力。 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **说明:** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 11开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8e41f4b71Sopenharmony_ci> 9e41f4b71Sopenharmony_ci> 本模块接口仅可在Stage模型下使用。 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci## 导入模块 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci```ts 14e41f4b71Sopenharmony_ciimport { insightIntent } from '@kit.AbilityKit'; 15e41f4b71Sopenharmony_ci``` 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci## ExecuteMode 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci意图调用执行模式。 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Ability.AbilityRuntime.Core 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci| 名称 | 值 | 说明 | 24e41f4b71Sopenharmony_ci| -------- | -------- | -------- | 25e41f4b71Sopenharmony_ci| UI_ABILITY_FOREGROUND | 0 | 将UIAbility在前台显示。<br>**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | 26e41f4b71Sopenharmony_ci| UI_ABILITY_BACKGROUND | 1 | 将UIAbility在后台拉起。<br>**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | 27e41f4b71Sopenharmony_ci| UI_EXTENSION_ABILITY | 2 | 拉起UIExtensionAbility。 | 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci## ExecuteResult 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci意图调用的返回结果。 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Ability.AbilityRuntime.Core 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci| 名称 | 类型 | 只读 | 可选 | 说明 | 38e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- | -------- | 39e41f4b71Sopenharmony_ci| code | number | 否 | 否 | 意图调用返回的错误码。 | 40e41f4b71Sopenharmony_ci| result | Record<string, Object> | 否 | 是 | 意图调用返回的结果。 | 41