harmony 鸿蒙@ohos.app.ability.insightIntent (insightIntent)

  • 2025-06-12
  • 浏览 (4)

@ohos.app.ability.insightIntent (insightIntent)

The insightIntent module provides APIs for InsightIntent calls.

NOTE

The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.

The APIs of this module can be used only in the stage model.

Modules to Import

import { insightIntent } from '@kit.AbilityKit';

ExecuteMode

Enumerates the InsightIntent call execution modes.

System capability: SystemCapability.Ability.AbilityRuntime.Core

Name Value Description
UI_ABILITY_FOREGROUND 0 Display a UIAbility in the foreground.
Atomic service API: This API can be used in atomic services since API version 11.
UI_ABILITY_BACKGROUND 1 Start a UIAbility in the background.
Atomic service API: This API can be used in atomic services since API version 11.
UI_EXTENSION_ABILITY 2 Start a UIExtensionAbility.

ExecuteResult

Defines the InsightIntent call execution result.

System capability: SystemCapability.Ability.AbilityRuntime.Core

Name Type Read-only Optional Description
code number No No Error code returned.
Atomic service API: This API can be used in atomic services since API version 11.
result Record No Yes Execution result returned.
Atomic service API: This API can be used in atomic services since API version 11.
uris18+ Array<string> No Yes List of URIs authorized by the InsightIntent executor to the InsightIntent caller during the call.
Atomic service API: This API can be used in atomic services since API version 18.
flags18+ number No Yes Flags of the URIs authorized by the InsightIntent executor to the InsightIntent caller during the call.
Atomic service API: This API can be used in atomic services since API version 18.
NOTE
This parameter supports only FLAG_AUTH_READ_URI_PERMISSION, FLAG_AUTH_WRITE_URI_PERMISSION, and FLAG_AUTH_READ_URI_PERMISSION|FLAG_AUTH_WRITE_URI_PERMISSION.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙AbilityAccessControl

harmony 鸿蒙AbilityBase

harmony 鸿蒙AbilityBase_Element

harmony 鸿蒙AbilityRuntime

harmony 鸿蒙bundle

harmony 鸿蒙OH_NativeBundle_ApplicationInfo

harmony 鸿蒙OH_NativeBundle_ElementName

harmony 鸿蒙ability_access_control.h

harmony 鸿蒙ability_base_common.h

0  赞