1e41f4b71Sopenharmony_ci# @ohos.app.ability.wantConstant (wantConstant)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe wantConstant module provides the actions, entities, and flags used in **Want** objects.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 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.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## Modules to Import
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci```ts
12e41f4b71Sopenharmony_ciimport { wantConstant } from '@kit.AbilityKit';
13e41f4b71Sopenharmony_ci```
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci## Params
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ciDefines **Params** (specifying the action that can be performed) in the Want.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityBase
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci| Name                   | Value                                | Description                                                                          |
22e41f4b71Sopenharmony_ci| ----------------------- | ---------------------------------- | ------------------------------------------------------------------------------ |
23e41f4b71Sopenharmony_ci| ABILITY_BACK_TO_OTHER_MISSION_STACK   | ability.params.backToOtherMissionStack     | Action of redirection back across mission stacks.<br>**Atomic service API**: This API can be used in atomic services since API version 11. |
24e41f4b71Sopenharmony_ci| ABILITY_RECOVERY_RESTART<sup>10+</sup> | ohos.ability.params.abilityRecoveryRestart | Action of recovering an ability from a fault and restarting it.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
25e41f4b71Sopenharmony_ci| CONTENT_TITLE_KEY<sup>10+</sup>       | ohos.extra.param.key.contentTitle  | Action of sharing the content title.<br>**Atomic service API**: This API can be used in atomic services since API version 11. |
26e41f4b71Sopenharmony_ci| SHARE_ABSTRACT_KEY<sup>10+</sup>      | ohos.extra.param.key.shareAbstract | Action of sharing the abstract.<br>**Atomic service API**: This API can be used in atomic services since API version 11. |
27e41f4b71Sopenharmony_ci| SHARE_URL_KEY<sup>10+</sup>           | ohos.extra.param.key.shareUrl      | Action of sharing the URL.<br>**Atomic service API**: This API can be used in atomic services since API version 11. |
28e41f4b71Sopenharmony_ci| SUPPORT_CONTINUE_PAGE_STACK_KEY<sup>10+</sup>    | ohos.extra.param.key.supportContinuePageStack  | Action of migrating page stack information during cross-device migration. The default value is **true**, indicating that page stack information is automatically migrated.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
29e41f4b71Sopenharmony_ci| SUPPORT_CONTINUE_SOURCE_EXIT_KEY<sup>10+</sup>  | ohos.extra.param.key.supportContinueSourceExit      | Action of exiting the application on the source device during cross-device migration. The default value is **true**, indicating that the application on the source device automatically exits.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
30e41f4b71Sopenharmony_ci| SHOW_MODE_KEY<sup>12+</sup>  | ohos.extra.param.key.showMode      | Show mode. For details, see **wantConstant.ShowMode**.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
31e41f4b71Sopenharmony_ci| PARAMS_STREAM<sup>12+</sup>  | ability.params.stream  | File URIs to be authorized to the target ability. The value must be an array of file URIs of the string type. For details about how to obtain the file URI, see [fileUri](../apis-core-file-kit/js-apis-file-fileuri.md#fileurigeturifrompath).<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
32e41f4b71Sopenharmony_ci| APP_CLONE_INDEX_KEY<sup>12+</sup>  | ohos.extra.param.key.appCloneIndex  | Index of an application clone.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
33e41f4b71Sopenharmony_ci| CALLER_REQUEST_CODE<sup>12+</sup>  | ohos.extra.param.key.callerRequestCode  | Request code that uniquely idenfies the caller of [startAbilityForResult](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartabilityforresult) or [openLink](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextopenlink12). When either of the APIs is called to start an ability, the target ability returns the result to the caller based on the request code.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
34e41f4b71Sopenharmony_ci| APP_INSTANCE_KEY<sup>14+</sup>  | ohos.extra.param.key.appInstance  | Specific application instance.|
35e41f4b71Sopenharmony_ci| CREATE_APP_INSTANCE_KEY<sup>14+</sup>  | ohos.extra.param.key.createAppInstance  | Action of creating an application instance.|
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci## Flags
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci Enumerates the flags that specify how the Want will be handled.
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityBase
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci| Name                                | Value      | Description                                                        |
44e41f4b71Sopenharmony_ci| ------------------------------------ | ---------- | ------------------------------------------------------------ |
45e41f4b71Sopenharmony_ci| FLAG_AUTH_READ_URI_PERMISSION        | 0x00000001 | Grant the permission to read the URI.<br>**Atomic service API**: This API can be used in atomic services since API version 11.                                 |
46e41f4b71Sopenharmony_ci| FLAG_AUTH_WRITE_URI_PERMISSION       | 0x00000002 | Grant the permission to write data to the URI.<br>**Atomic service API**: This API can be used in atomic services since API version 11.                                 |
47e41f4b71Sopenharmony_ci| FLAG_AUTH_PERSISTABLE_URI_PERMISSION<sup>12+</sup> | 0x00000040 | Make the URI persisted. It takes effect only on tablets.|
48e41f4b71Sopenharmony_ci| FLAG_INSTALL_ON_DEMAND               | 0x00000800 | Install the ability if it has not been installed.<br>**Atomic service API**: This API can be used in atomic services since API version 11.                             |
49e41f4b71Sopenharmony_ci| FLAG_START_WITHOUT_TIPS<sup>11+</sup>              | 0x40000000 | Do not display any tips if the ability implicitly started does not match any application.      |
50e41f4b71Sopenharmony_ci## ShowMode<sup>12+</sup>
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ciEnumerates the modes used to show the atomic service startup.
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityBase
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci| Name                               | Value| Description          |
59e41f4b71Sopenharmony_ci| ----------------------------------- |---|--------------|
60e41f4b71Sopenharmony_ci| WINDOW        | 0 | An independent window is used to show the ability startup. |
61e41f4b71Sopenharmony_ci| EMBEDDED_FULL       | 1 | An embedded full-screen is used to show the ability startup.|
62