mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
Support onSaveState, onWindowStageRestore, onContinue
Signed-off-by: zhangyafei-echo <zhangyafei12@huawei.com> Change-Id: I02afc3a1b6ef0c85adff8dc093fc02b5b3681e1b
This commit is contained in:
parent
4b513de96e
commit
fa20afe131
@ -377,4 +377,61 @@ export default class AbilityLifecycleCallback {
|
||||
* @since 11
|
||||
*/
|
||||
onAbilityContinue(ability: UIAbility): void;
|
||||
|
||||
/**
|
||||
* Called back when the ability prepares to call onContinue.
|
||||
*
|
||||
* @param { UIAbility } ability - Indicates the ability to register for listening.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
onAbilityWillContinue?(ability: UIAbility): void;
|
||||
|
||||
/**
|
||||
* Called back when the ability prepares to call onWindowStageRestore.
|
||||
*
|
||||
* @param { UIAbility } ability - Indicates the ability to register for listening.
|
||||
* @param { window.WindowStage } windowStage - window stage to restore.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
onWindowStageWillRestore?(ability: UIAbility, windowStage: window.WindowStage): void;
|
||||
|
||||
/**
|
||||
* Called back when the ability has called onWindowStageRestore.
|
||||
*
|
||||
* @param { UIAbility } ability - Indicates the ability to register for listening.
|
||||
* @param { window.WindowStage } windowStage - window stage to restore.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
onWindowStageRestore?(ability: UIAbility, windowStage: window.WindowStage): void;
|
||||
|
||||
/**
|
||||
* Called back when the ability prepares to call onSaveState.
|
||||
*
|
||||
* @param { UIAbility } ability - Indicates the ability to register for listening.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
onAbilityWillSaveState?(ability: UIAbility): void;
|
||||
|
||||
/**
|
||||
* Called back when the ability has called onSaveState.
|
||||
*
|
||||
* @param { UIAbility } ability - Indicates the ability to register for listening.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
onAbilitySaveState?(ability: UIAbility): void;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user