• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.ability.wantConstant (wantConstant) (System API)
2
3The wantConstant module provides the actions, entities, and flags used in Want objects.
4
5> **NOTE**
6>
7> 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](js-apis-app-ability-wantConstant.md) instead. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> This topic describes only system APIs provided by the module. For details about its public APIs, see [@ohos.ability.wantConstant (wantConstant)](js-apis-ability-wantConstant.md).
10
11## Modules to Import
12
13```ts
14import wantConstant from '@ohos.ability.wantConstant';
15```
16
17## Flags
18
19 Enumerates the flags that specify how the Want will be handled.
20
21**System capability**: SystemCapability.Ability.AbilityBase
22
23**System API**: This is a system API.
24
25| Name                                | Value      | Description                                                        |
26| ------------------------------------ | ---------- | ------------------------------------------------------------ |
27| FLAG_AUTH_PERSISTABLE_URI_PERMISSION | 0x00000040 | Grants the permission to make the URI persistent. |
28| FLAG_AUTH_PREFIX_URI_PERMISSION      | 0x00000080 | Grants the permission to verify URIs by prefix matching.|
29| FLAG_ABILITY_CONTINUATION_REVERSIBLE | 0x00000400 | Indicates that ability continuation is reversible.    |
30