mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
Signed-off-by: wangdongdong <wangdongdong14@huawei.com>
Change-Id: Ia220850ad5f9f0ac703143c3f9aa4a392993631b
This commit is contained in:
parent
02803caacc
commit
6baa072e53
6
api/@ohos.application.Ability.d.ts
vendored
6
api/@ohos.application.Ability.d.ts
vendored
@ -257,15 +257,15 @@ export default class Ability {
|
||||
onBackground(): void;
|
||||
|
||||
/**
|
||||
* Called back when an ability prepares to migrate.
|
||||
* Called back when an ability prepares to continue.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @param wantParam Indicates the want parameter.
|
||||
* @return true if ability agrees to migrate and saves data successfully, otherwise false.
|
||||
* @return 0 if ability agrees to continue and saves data successfully, otherwise errcode.
|
||||
* @StageModelOnly
|
||||
*/
|
||||
onContinue(wantParam : {[key: string]: any}): boolean;
|
||||
onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult;
|
||||
|
||||
/**
|
||||
* Called when the launch mode of an ability is set to singleton.
|
||||
|
13
api/@ohos.application.AbilityConstant.d.ts
vendored
13
api/@ohos.application.AbilityConstant.d.ts
vendored
@ -75,6 +75,19 @@ declare namespace AbilityConstant {
|
||||
ABILITY_NOT_RESPONDING = 1,
|
||||
NORMAL = 2,
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of onContinue result.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||
* @StageModelOnly
|
||||
*/
|
||||
export enum OnContinueResult {
|
||||
AGREE = 0,
|
||||
REJECT = 1,
|
||||
MISMATCH = 2,
|
||||
}
|
||||
}
|
||||
|
||||
export default AbilityConstant
|
||||
|
Loading…
Reference in New Issue
Block a user