From ca8f442c0f6ed2070eac54f2e2d672ecdc5864a4 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Wed, 20 Jul 2022 03:04:51 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=87=E6=A1=A3=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=E5=AE=98=E3=80=91js-apis-continuation-continuationManager?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0promise=E8=BF=94=E5=9B=9E=E5=80=BC=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=20Signed-off-by:=20wusongqing=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...s-apis-continuation-continuationManager.md | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md index 5153a98a31..6f493563be 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md @@ -1,11 +1,11 @@ # continuationManager +continuationManager模块提供了流转/协同入口管理服务能力,包括连接/取消流转管理服务,注册/解注册设备连接变化监听,拉起互联面板,更新连接状态。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** +> > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -continuationManager模块提供了流转/协同入口管理服务能力,包括连接/取消流转管理服务,注册/解注册设备连接变化监听,拉起互联面板,更新连接状态。 - ## 导入模块 ```js @@ -86,6 +86,12 @@ register(options?: ContinuationExtraParams): Promise\; | -------- | -------- | -------- | -------- | | options | [ContinuationExtraParams](js-apis-continuation-continuationExtraParams.md) | 否 | 过滤可选择设备列表的额外参数,该参数可缺省| +**返回值:** + +| 类型 | 说明 | +| ------------------------- | ------------------ | +| Promise\ | Promise形式返回流转管理服务连接后生成的token。 | + **示例:** ```js @@ -302,6 +308,12 @@ startDeviceManager(token: number, options?: ContinuationExtraParams): Promise\ | Promise形式返回接口调用结果。 | + **示例:** ```js @@ -363,6 +375,12 @@ updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState) | deviceId | string | 是 | 设备ID。 | | status | [DeviceConnectState](#deviceconnectstate) | 是 | 设备连接状态。 | +**返回值:** + +| 类型 | 说明 | +| ------------------------- | ------------------ | +| Promise\ | Promise形式返回接口调用结果。 | + **示例:** ```js @@ -417,6 +435,12 @@ unregister(token: number): Promise\; | -------- | -------- | -------- | -------- | | token | number | 是 | 注册后的token。 | +**返回值:** + +| 类型 | 说明 | +| ------------------------- | ------------------ | +| Promise\ | Promise形式返回接口调用结果。 | + **示例:** ```js -- GitLab