openharmony 鸿蒙 js-apis-ability-wantConstant-sys

2025-06-12 浏览 (1)

@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.

NameValueDescription
FLAG_AUTH_PERSISTABLE_URI_PERMISSION0x00000040Grants the permission to make the URI persistent.
FLAG_AUTH_PREFIX_URI_PERMISSION0x00000080Grants the permission to verify URIs by prefix matching.
FLAG_ABILITY_CONTINUATION_REVERSIBLE0x00000400Indicates 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

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