openharmony 鸿蒙 js-apis-app-ability-insightIntent

2025-06-12 浏览 (1)

@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

NameValueDescription
UI_ABILITY_FOREGROUND0Display a UIAbility in the foreground.
Atomic service API: This API can be used in atomic services since API version 11.
UI_ABILITY_BACKGROUND1Start a UIAbility in the background.
Atomic service API: This API can be used in atomic services since API version 11.
UI_EXTENSION_ABILITY2Start a UIExtensionAbility.

ExecuteResult

Defines the InsightIntent call execution result.

System capability: SystemCapability.Ability.AbilityRuntime.Core

NameTypeRead-onlyOptionalDescription
codenumberNoNoError code returned.
Atomic service API: This API can be used in atomic services since API version 11.
resultRecord<string, Object>NoYesExecution result returned.
Atomic service API: This API can be used in atomic services since API version 11.
uris18+Array<string>NoYesList 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+numberNoYesFlags 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

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