提交 d7644f95 编写于 作者: Z zhangmingxiang

fixed d1e2cb31 from https://gitee.com/zmxlye/docs/pulls/8913

fix continuation manager docs
Signed-off-by: Nzhangmingxiang <zhangmingxiang@huawei.com>
Change-Id: I0dcdf0defc031475b52296383fe0c80d04ed6064
Signed-off-by: Nzhangmingxiang <zhangmingxiang@huawei.com>
上级 76650197
......@@ -112,33 +112,37 @@ register(options?: ContinuationExtraParams): Promise\<number>;
```
## continuationManager.on("deviceConnect")<sup>(deprecated)</sup>
> 从API Version 9开始不再维护,建议使用[on](#continuationmanagerondeviceconnect)替代。
on(type: "deviceConnect", callback: Callback\<ContinuationResult>): void;
异步方法,监听设备连接状态,使用Callback形式返回连接的设备信息。
> 从API Version 9开始不再维护,建议使用[on](#continuationmanagerondeviceconnect9)替代。
## continuationManager.on("deviceDisconnect")<sup>(deprecated)</sup>
> 从API Version 9开始不再维护,建议使用[on](#continuationmanagerondevicedisconnect)替代。
on(type: "deviceDisconnect", callback: Callback\<string>): void;
异步方法,监听设备断开状态,使用Callback形式返回断开的设备信息。
> 从API Version 9开始不再维护,建议使用[on](#continuationmanagerondevicedisconnect9)替代。
## continuationManager.off("deviceConnect")<sup>(deprecated)</sup>
> 从API Version 9开始不再维护,建议使用[off](#continuationmanageroffdeviceconnect)替代。
off(type: "deviceConnect", callback?: Callback\<ContinuationResult>): void;
异步方法,取消监听设备连接状态,使用Callback形式返回连接的设备信息。
> 从API Version 9开始不再维护,建议使用[off](#continuationmanageroffdeviceconnect9)替代。
## continuationManager.off("deviceDisconnect")<sup>(deprecated)</sup>
> 从API Version 9开始不再维护,建议使用[off](#continuationmanageroffdevicedisconnect)替代。
off(type: "deviceDisconnect", callback?: Callback\<string>): void;
异步方法,取消监听设备断开状态,使用Callback形式返回连接的设备信息。
> 从API Version 9开始不再维护,建议使用[off](#continuationmanageroffdevicedisconnect9)替代。
## continuationManager.on("deviceConnect")<sup>9+</sup>
on(type: "deviceConnect", token: number, callback: Callback\<Array\<ContinuationResult>>): void;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册