From 57de3c542a49b4e3d1ae8c5a3659d9ca0bf72851 Mon Sep 17 00:00:00 2001 From: lixiaoying25 Date: Thu, 4 Sep 2025 15:26:01 +0800 Subject: [PATCH] =?UTF-8?q?API=20=E5=AE=9A=E4=B9=89=E4=B8=AD=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E6=96=B9=E6=B3=95=E6=B7=B7=E7=94=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lixiaoying25 --- api/@ohos.rpc.d.ts | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 333ad6ef08..41fe2710e5 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -2782,6 +2782,16 @@ declare namespace rpc { asObject(): IRemoteObject; } + /** + * Called to perform subsequent operations when a death notification of the remote object is received. + * + * @typedef { funcation } + * @syscap SystemCapability.Communication.IPC.Core + * @since 20 + * @arkts 1.2 + */ + export type OnRemoteDiedFunc = () => void; + /** * @typedef DeathRecipient * @syscap SystemCapability.Communication.IPC.Core @@ -2807,10 +2817,19 @@ declare namespace rpc { * Called to perform subsequent operations when a death notification of the remote object is received. * * @syscap SystemCapability.Communication.IPC.Core - * @since arkts {'1.1':'7', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 7 */ onRemoteDied(): void; + + /** + * Called to perform subsequent operations when a death notification of the remote object is received. + * + * @type { OnRemoteDiedFunc } + * @syscap SystemCapability.Communication.IPC.Core + * @since 20 + * @arkts 1.2 + */ + onRemoteDied: OnRemoteDiedFunc; } /** -- Gitee