未验证 提交 64d97f3f 编写于 作者: O openharmony_ci 提交者: Gitee

!8250 接口示例代码修改

Merge pull request !8250 from ZhengJiangliang/master
...@@ -2272,6 +2272,11 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, c ...@@ -2272,6 +2272,11 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, c
**示例:** **示例:**
```js ```js
class MyDeathRecipient {
onRemoteDied() {
console.log("server died");
}
}
class TestRemoteObject extends rpc.RemoteObject { class TestRemoteObject extends rpc.RemoteObject {
constructor(descriptor) { constructor(descriptor) {
super(descriptor); super(descriptor);
...@@ -2324,6 +2329,11 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>): ...@@ -2324,6 +2329,11 @@ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>):
**示例:** **示例:**
```js ```js
class MyDeathRecipient {
onRemoteDied() {
console.log("server died");
}
}
class TestRemoteObject extends rpc.RemoteObject { class TestRemoteObject extends rpc.RemoteObject {
constructor(descriptor) { constructor(descriptor) {
super(descriptor); super(descriptor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册