From ec7f5b149f70fa8c2c1da5a61cb5a4da7a510ec0 Mon Sep 17 00:00:00 2001 From: wangdongdong Date: Thu, 13 Jan 2022 10:24:39 +0800 Subject: [PATCH] Signed-off-by: wangdongdong Change-Id: I8d4f738eee52b9e243aacb980346f95b57a19115 --- api/@ohos.application.Ability.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/@ohos.application.Ability.d.ts b/api/@ohos.application.Ability.d.ts index acf28ef9c6..7395dc55cf 100644 --- a/api/@ohos.application.Ability.d.ts +++ b/api/@ohos.application.Ability.d.ts @@ -109,6 +109,16 @@ export default class Ability { * @return - */ onBackground(): void; + + /** + * Called back when an ability prepares to migrate. + * + * @devices phone, tablet, tv, wearable, car + * @since 8 + * @sysCap AAFwk + * @return true if ability agrees to migrate and saves data successfully, otherwise false. + */ + onContinue(wantParam : {[key: string]: any}): boolean; } export interface LaunchParam { -- Gitee