From a3e5bc1b232242a54ebf7186f28396e2961525ca Mon Sep 17 00:00:00 2001 From: zhang_hao_zheng Date: Tue, 24 Jun 2025 21:18:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9DisconnectAsync=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=BD=93=E7=8E=B0=E5=85=B6=E7=89=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_hao_zheng Change-Id: Ibfea67891da0203ced48fb46c6be2200311152ad --- api/@ohos.app.ability.ServiceExtensionAbility.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/@ohos.app.ability.ServiceExtensionAbility.d.ts b/api/@ohos.app.ability.ServiceExtensionAbility.d.ts index b4659fb1ec..1ec784ce13 100644 --- a/api/@ohos.app.ability.ServiceExtensionAbility.d.ts +++ b/api/@ohos.app.ability.ServiceExtensionAbility.d.ts @@ -123,7 +123,8 @@ declare class ServiceExtensionAbility { onDisconnect(want: Want): void; /** - * Called back when all abilities connected to a service extension are disconnected. + * Asynchronous callback when all abilities connected to a service extension are disconnected. + * The subsequent life cycle will continue when the returned Promise object resolves. * * @param { Want } want - Indicates disconnection information about the service extension. * @returns { Promise } the promise returned by the function. -- Gitee From 0bcc3310a37cb2e7f2df3c784c6aa24165d46e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=8A=E5=B3=A5?= Date: Wed, 25 Jun 2025 09:40:07 +0000 Subject: [PATCH 2/2] update api/@ohos.app.ability.ServiceExtensionAbility.d.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张昊峥 --- api/@ohos.app.ability.ServiceExtensionAbility.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.app.ability.ServiceExtensionAbility.d.ts b/api/@ohos.app.ability.ServiceExtensionAbility.d.ts index 1ec784ce13..0d678b9f42 100644 --- a/api/@ohos.app.ability.ServiceExtensionAbility.d.ts +++ b/api/@ohos.app.ability.ServiceExtensionAbility.d.ts @@ -124,7 +124,7 @@ declare class ServiceExtensionAbility { /** * Asynchronous callback when all abilities connected to a service extension are disconnected. - * The subsequent life cycle will continue when the returned Promise object resolves. + * The next lifecycle callback onDestroy() will be triggered when the returned Promise object resolves. * * @param { Want } want - Indicates disconnection information about the service extension. * @returns { Promise } the promise returned by the function. -- Gitee