openharmony 鸿蒙 insight-intent-debug

2026-08-25 浏览 (1)

Debugging Intents

Overview

The InsightIntent framework provides an intent debugging tool for debugging intents after they access the framework. This tool can be used to query and execute intents.

Constraints

Intent debugging is supported only on mobile phones, and the corresponding API version must be 20 or later.

Function Access

  1. Enable the intent debugging capability.

    1. Tap Settings on your device.
    2. Choose System from the menu.
    3. Choose Developer options.
    4. Choose InsightIntent debugging and turn on the function switch.
  2. View intents. On the InsightIntent debugging page, tap View all InsightIntents on device.

    You can view all registered intents on the current page.

  3. Debug intents.

    1. Set intent parameters.

    2. Tap Execute InsightIntent.

      If the intent implemented is correct, the execution is successful. The execution results of different types of intents are as follows:

    DecoratorExecution ModeIntent Call Result
    @InsightIntentLinkUI_ABILITY_FOREGROUNDThe page is redirected. A semi-modal window appears in the lower part to display the intent call return result.
    @InsightIntentPageUI_ABILITY_FOREGROUNDThe page is redirected. A semi-modal window appears in the lower part to display the intent call return result.
    @InsightIntentEntryUI_ABILITY_FOREGROUNDThe page is redirected. A semi-modal window appears in the lower part to display the intent call return result.
    @InsightIntentEntryUI_ABILITY_BACKGROUNDA semi-modal window appears in the lower part to display the intent call return result.
    @InsightIntentEntryUI_EXTENSION_ABILITYA semi-modal window appears in the lower part to display the embedded UIExtensionAbility page.
    @InsightIntentEntrySERVICE_EXTENSION_ABILITYA semi-modal window appears in the lower part to display the intent call return result.
    @InsightIntentFunctionMethodUI_ABILITY_BACKGROUNDA semi-modal window appears in the lower part to display the intent call return result.
    @InsightIntentForm-An embedded widget page. You can tap the widget to go to the application.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 create-pageability

openharmony 鸿蒙 lifecycleform-switch

openharmony 鸿蒙 mission-management-launch-type-sys

openharmony 鸿蒙 bind-serviceability-from-stage

openharmony 鸿蒙 lifecycleservice-switch

openharmony 鸿蒙 pageability-launch-type

openharmony 鸿蒙 pageability-overview

openharmony 鸿蒙 uiserviceextension-sys

openharmony 鸿蒙 uiability-launch-type

openharmony 鸿蒙 application-context-fa

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/FF1R5gmi