未验证 提交 c6e2e150 编写于 作者: K king_he 提交者: Gitee

update en/application-dev/reference/apis/js-apis-application-abilityConstant.md.

Signed-off-by: Nking_he <6384784@qq.com>
上级 ddd25da6
# AbilityConstant # AbilityConstant
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> 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. > 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.
...@@ -19,10 +19,10 @@ import AbilityConstant from '@ohos.application.AbilityConstant'; ...@@ -19,10 +19,10 @@ import AbilityConstant from '@ohos.application.AbilityConstant';
**System capability**: SystemCapability.Ability.AbilityRuntime.Core **System capability**: SystemCapability.Ability.AbilityRuntime.Core
| Name| Type| Readable| Writable| Description| | Name | Type | Readable | Writable | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| launchReason | LaunchReason| Yes| Yes| Ability launch reason.| | launchReason | LaunchReason | Yes | Yes | Ability launch reason. |
| lastExitReason | LastExitReason | Yes| Yes| Reason for the last exit.| | lastExitReason | LastExitReason | Yes | Yes | Reason for the last exit. |
## AbilityConstant.LaunchReason ## AbilityConstant.LaunchReason
...@@ -30,12 +30,12 @@ Enumerates ability launch reasons. ...@@ -30,12 +30,12 @@ Enumerates ability launch reasons.
**System capability**: SystemCapability.Ability.AbilityRuntime.Core **System capability**: SystemCapability.Ability.AbilityRuntime.Core
| Name | Value | Description | | Name | Value | Description |
| ----------------------------- | ---- | ------------------------------------------------------------ | | ----------------------------- | ---- | ------------------------------------------------------------ |
| UNKNOWN | 0 | Unknown reason.| | UNKNOWN | 0 | Unknown reason. |
| START_ABILITY | 1 | Ability startup.| | START_ABILITY | 1 | Ability startup. |
| CALL | 2 | Call.| | CALL | 2 | Call. |
| CONTINUATION | 3 | Ability continuation.| | CONTINUATION | 3 | Ability continuation. |
## AbilityConstant.LastExitReason ## AbilityConstant.LastExitReason
...@@ -44,11 +44,11 @@ Enumerates reasons for the last exit. ...@@ -44,11 +44,11 @@ Enumerates reasons for the last exit.
**System capability**: SystemCapability.Ability.AbilityRuntime.Core **System capability**: SystemCapability.Ability.AbilityRuntime.Core
| Name | Value | Description | | Name | Value | Description |
| ----------------------------- | ---- | ------------------------------------------------------------ | | ----------------------------- | ---- | ------------------------------------------------------------ |
| UNKNOWN | 0 | Unknown reason.| | UNKNOWN | 0 | Unknown reason. |
| ABILITY_NOT_RESPONDING | 1 | The ability does not respond.| | ABILITY_NOT_RESPONDING | 1 | The ability does not respond. |
| NORMAL | 2 | Normal status.| | NORMAL | 2 | Normal status. |
## AbilityConstant.OnContinueResult ## AbilityConstant.OnContinueResult
...@@ -57,8 +57,8 @@ Enumerates ability continuation results. ...@@ -57,8 +57,8 @@ Enumerates ability continuation results.
**System capability**: SystemCapability.Ability.AbilityRuntime.Core **System capability**: SystemCapability.Ability.AbilityRuntime.Core
| Name | Value | Description | | Name | Value | Description |
| ----------------------------- | ---- | ------------------------------------------------------------ | | ----------------------------- | ---- | ------------------------------------------------------------ |
| AGREE | 0 | Continuation agreed.| | AGREE | 0 | Continuation agreed. |
| REJECT | 1 | Continuation denied.| | REJECT | 1 | Continuation denied. |
| MISMATCH | 2 | Mismatch.| | MISMATCH | 2 | Mismatch. |
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册