diff --git a/api/@ohos.application.Ability.d.ts b/api/@ohos.application.Ability.d.ts index acf28ef9c6ea38c8ca7a20287962b5086066fdad..7395dc55cfdb839cb3726c2703db164a6b31fbaf 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 {