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

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

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

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

NOTE

The APIs of this module are supported since API version 6 and deprecated since API version 9. You are advised to use @ohos.app.ability.wantConstant instead. 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.ability.wantConstant (wantConstant).

Modules to Import

import wantConstant from '@ohos.ability.wantConstant';

Flags

Enumerates the flags that specify how the Want will be handled.

System capability: SystemCapability.Ability.AbilityBase

System API: This is a system API.

Name Value Description
FLAG_AUTH_PERSISTABLE_URI_PERMISSION 0x00000040 Grants the permission to make the URI persistent.
FLAG_AUTH_PREFIX_URI_PERMISSION 0x00000080 Grants the permission to verify URIs by prefix matching.
FLAG_ABILITY_CONTINUATION_REVERSIBLE 0x00000400 Indicates that ability continuation is reversible.

你可能感兴趣的鸿蒙文章

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  赞