diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 333ad6ef08ec08e15215442e79f04e82c513c1dd..41fe2710e544aa35bf16c785f07cbcca3ab5bb90 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; } /**