• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 调试意图
2## 概述
3意图框架提供了一个意图调试工具,便于接入意图框架后进行意图调试。该工具支持查询意图、执行意图。
4
5## 约束限制
6仅支持在手机上进行意图调试,且对应的API版本不低于20。
7
8## 功能接入
9
101. 开启意图调试能力。
11     1. 打开设备的“设置”应用。
12     2. 选择“系统”菜单。
13     3. 选择“开发者选项”菜单。
14     4. 选择“意图框架调试”菜单,开启该功能开关。
152. 查看意图:在意图框架调试页面,点击“查看设备上所有意图”。
16   开发者可以在当前页面查看所有已注册的意图。
173. 调试意图。
18     1. 配置意图参数。
19     2. 点击“执行意图”。
20        如果开发者实现的意图正确,则执行成功。执行结果:
21
22      | 装饰器类型 | 执行模式 | 意图调用结果 |
23      | --------- | --------- | -------- |
24      | [@InsightIntentLink](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentlink) | UI_ABILITY_FOREGROUND | 页面跳转,下方出现半模态窗口展示意图调用返回结果。 |
25      | [@InsightIntentPage](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentpage) | UI_ABILITY_FOREGROUND | 页面跳转,下方出现半模态窗口展示意图调用返回结果。 |
26      | [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry) | UI_ABILITY_FOREGROUND | 页面跳转,下方出现半模态窗口展示意图调用返回结果。 |
27      | [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry) | UI_ABILITY_BACKGROUND | 下方出现半模态窗口展示意图调用返回结果。 |
28      | [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry)| UI_EXTENSION_ABILITY | 下方出现半模态窗口展示内嵌[UIExtensionAbility](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-uiExtensionAbility.md#uiextensionability)页面。 |
29      | <!--DelRow--> [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry) | SERVICE_EXTENSION_ABILITY | 下方出现半模态窗口展示意图调用返回结果。 |
30      | [@InsightIntentFunctionMethod](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentfunctionmethod) | UI_ABILITY_BACKGROUND | 下方出现半模态窗口展示意图调用返回结果。 |
31      | [@InsightIntentForm](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentform) | - | 内嵌卡片页面,点击卡片可跳转至应用 |
32