未验证 提交 ca8f442c 编写于 作者: W wusongqing 提交者: Gitee

【文档体验官】js-apis-continuation-continuationManager添加promise返回值描述

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 d17dc197
# continuationManager
continuationManager模块提供了流转/协同入口管理服务能力,包括连接/取消流转管理服务,注册/解注册设备连接变化监听,拉起互联面板,更新连接状态。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> **说明:**
>
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
continuationManager模块提供了流转/协同入口管理服务能力,包括连接/取消流转管理服务,注册/解注册设备连接变化监听,拉起互联面板,更新连接状态。
## 导入模块
```js
......@@ -86,6 +86,12 @@ register(options?: ContinuationExtraParams): Promise\<number>;
| -------- | -------- | -------- | -------- |
| options | [ContinuationExtraParams](js-apis-continuation-continuationExtraParams.md) | 否 | 过滤可选择设备列表的额外参数,该参数可缺省|
**返回值:**
| 类型 | 说明 |
| ------------------------- | ------------------ |
| Promise\<number> | Promise形式返回流转管理服务连接后生成的token。 |
**示例:**
```js
......@@ -302,6 +308,12 @@ startDeviceManager(token: number, options?: ContinuationExtraParams): Promise\<v
| token | number | 是 | 注册后的token。 |
| options | [ContinuationExtraParams](js-apis-continuation-continuationExtraParams.md) | 否 | 过滤可选择设备列表的额外参数,该参数可缺省|
**返回值:**
| 类型 | 说明 |
| ------------------------- | ------------------ |
| Promise\<void> | Promise形式返回接口调用结果。 |
**示例:**
```js
......@@ -363,6 +375,12 @@ updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState)
| deviceId | string | 是 | 设备ID。 |
| status | [DeviceConnectState](#deviceconnectstate) | 是 | 设备连接状态。 |
**返回值:**
| 类型 | 说明 |
| ------------------------- | ------------------ |
| Promise\<void> | Promise形式返回接口调用结果。 |
**示例:**
```js
......@@ -417,6 +435,12 @@ unregister(token: number): Promise\<void>;
| -------- | -------- | -------- | -------- |
| token | number | 是 | 注册后的token。 |
**返回值:**
| 类型 | 说明 |
| ------------------------- | ------------------ |
| Promise\<void> | Promise形式返回接口调用结果。 |
**示例:**
```js
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册