harmony 鸿蒙@ohos.app.ability.insightIntent (insightIntent)
@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 鸿蒙AbilityAccessControl
harmony 鸿蒙OH_NativeBundle_ApplicationInfo
harmony 鸿蒙OH_NativeBundle_ElementName
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦