harmony 鸿蒙@ohos.app.ability.wantConstant (wantConstant) (System API)

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

@ohos.app.ability.wantConstant (wantConstant) (System API)

The wantConstant module provides the actions, entities, and flags used in Want objects.

NOTE

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

This topic describes only system APIs provided by the module. For details about its public APIs, see @ohos.app.ability.wantConstant (wantConstant).

Modules to Import

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

Params

Defines Params (specifying the action that can be performed) in the Want.

System capability: SystemCapability.Ability.AbilityBase

Name Value Description
DLP_PARAMS_SANDBOX ohos.dlp.params.sandbox Action of obtaining the sandbox flag.
System API: This is a system API.
DLP_PARAMS_BUNDLE_NAME ohos.dlp.params.bundleName Action of obtaining the DLP bundle name.
System API: This is a system API.
DLP_PARAMS_MODULE_NAME ohos.dlp.params.moduleName Action of obtaining the DLP module name.
System API: This is a system API.
DLP_PARAMS_ABILITY_NAME ohos.dlp.params.abilityName Action of obtaining the DLP ability name.
System API: This is a system API.
DLP_PARAMS_INDEX ohos.dlp.params.index Action of obtaining the DLP index.
System API: This is a system API.
ASSERT_FAULT_SESSION_ID12+ ohos.ability.params.asssertFaultSessionId Session ID of the AssertFault.
System API: This is a system API.

你可能感兴趣的鸿蒙文章

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  赞