Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
fb436d18
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
fb436d18
编写于
11月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!11470 continuation Manager英文修改
Merge pull request !11470 from 杜智海/master
上级
7e6239f6
0b5ea433
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
56 addition
and
56 deletion
+56
-56
zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md
...eference/apis/js-apis-continuation-continuationManager.md
+56
-56
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md
浏览文件 @
fb436d18
...
...
@@ -2,7 +2,7 @@
continuationManager模块提供了流转/协同入口管理服务能力,包括连接/取消流转管理服务,注册/解注册设备连接变化监听,拉起设备选择模块,更新连接状态。
本模块接口用于拉起系统中的设备选择模块,由于该模块功能暂不完备,因此
**流转能力整体暂不支持用于应用开发**
。
本模块接口用于拉起系统中的设备选择模块,由于该模块功能暂不完备,因此
流转能力整体暂不支持用于应用开发
。
> **说明:**
>
...
...
@@ -38,7 +38,7 @@ register(callback: AsyncCallback\<number>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360207 | The
maximum number of registrations exceeded
. |
| 29360207 | The
number of registrations has reached the upper limit
. |
**示例:**
...
...
@@ -79,7 +79,7 @@ register(options: ContinuationExtraParams, callback: AsyncCallback\<number>): vo
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360207 | The
maximum number of registrations exceeded
. |
| 29360207 | The
number of registrations has reached the upper limit
. |
| 29360216 | Invalid continuation mode. |
**示例:**
...
...
@@ -129,7 +129,7 @@ register(options?: ContinuationExtraParams): Promise\<number>;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object |
| 7 | The object is null. |
| 29360207 | The
maximum number of registrations exceeded
. |
| 29360207 | The
number of registrations has reached the upper limit
. |
| 29360216 | Invalid continuation mode. |
**示例:**
...
...
@@ -172,7 +172,7 @@ registerContinuation(callback: AsyncCallback\<number>): void;
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600001 | The system ability work
s
abnormally. |
| 16600003 | The number of token registration times has reached the upper limit. |
**示例:**
...
...
@@ -217,7 +217,7 @@ registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\<
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600001 | The system ability work
s
abnormally. |
| 16600003 | The number of token registration times has reached the upper limit. |
**示例:**
...
...
@@ -270,7 +270,7 @@ registerContinuation(options?: ContinuationExtraParams): Promise\<number>;
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600001 | The system ability work
s
abnormally. |
| 16600003 | The number of token registration times has reached the upper limit. |
**示例:**
...
...
@@ -320,8 +320,8 @@ on(type: "deviceConnect", callback: Callback\<ContinuationResult>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object |
| 7 | The object is null | 7 |
| 29360208 | The token
ha
s not registered. |
| 29360209 |
C
allback has been registered. |
| 29360208 | The token
i
s not registered. |
| 29360209 |
The c
allback has been registered. |
| 29360214 | The type of callback is not supported. |
**示例:**
...
...
@@ -359,8 +359,8 @@ on(type: "deviceDisconnect", callback: Callback\<string>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360209 |
C
allback has been registered. |
| 29360208 | The token
i
s not registered. |
| 29360209 |
The c
allback has been registered. |
| 29360214 | The type of callback is not supported. |
**示例:**
...
...
@@ -396,8 +396,8 @@ off(type: "deviceConnect", callback?: Callback\<ContinuationResult>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360214 | The type of callback is not supported. |
**示例:**
...
...
@@ -435,8 +435,8 @@ off(type: "deviceDisconnect", callback?: Callback\<string>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360214 | The type of callback is not supported. |
**示例:**
...
...
@@ -472,8 +472,8 @@ on(type: "deviceSelected", token: number, callback: Callback\<Array\<Continuatio
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
| 16600004 | The specified callback has been registered. |
**示例:**
...
...
@@ -519,8 +519,8 @@ on(type: "deviceUnselected", token: number, callback: Callback\<Array\<Continuat
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
| 16600004 | The specified callback has been registered. |
**示例:**
...
...
@@ -566,8 +566,8 @@ off(type: "deviceSelected", token: number): void;
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
| 16600004 | The specified callback has been registered. |
**示例:**
...
...
@@ -605,8 +605,8 @@ off(type: "deviceUnselected", token: number): void;
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
| 16600004 | The specified callback has been registered. |
**示例:**
...
...
@@ -645,9 +645,9 @@ startDeviceManager(token: number, callback: AsyncCallback\<void>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360211 | Failed to connect ability. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360211 | Failed to connect
to the
ability. |
| 29360216 | Invalid continuation mode. |
**示例:**
...
...
@@ -689,9 +689,9 @@ startDeviceManager(token: number, options: ContinuationExtraParams, callback: As
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object |
| 7 | The object is null |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360211 | Failed to connect ability. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360211 | Failed to connect
to the
ability. |
| 29360216 | Invalid continuation mode. |
**示例:**
...
...
@@ -741,9 +741,9 @@ startDeviceManager(token: number, options?: ContinuationExtraParams): Promise\<v
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object |
| 7 | The object is null |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360211 | Failed to connect ability. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360211 | Failed to connect
to the
ability. |
| 29360216 | Invalid continuation mode. |
**示例:**
...
...
@@ -786,8 +786,8 @@ startContinuationDeviceManager(token: number, callback: AsyncCallback\<void>): v
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
@@ -831,8 +831,8 @@ startContinuationDeviceManager(token: number, options: ContinuationExtraParams,
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
@@ -884,8 +884,8 @@ startContinuationDeviceManager(token: number, options?: ContinuationExtraParams)
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
@@ -934,10 +934,10 @@ updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState,
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360211 | Failed to connect ability. |
| 29360215 | Invalid connect state. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360211 | Failed to connect
to the
ability. |
| 29360215 | Invalid connect
ion
state. |
**示例:**
...
...
@@ -985,10 +985,10 @@ updateConnectStatus(token: number, deviceId: string, status: DeviceConnectState)
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360210 |
Callback ha
s not registered. |
| 29360211 | Failed to connect ability. |
| 29360215 | Invalid connect state. |
| 29360208 | The token
i
s not registered. |
| 29360210 |
The callback i
s not registered. |
| 29360211 | Failed to connect
to the
ability. |
| 29360215 | Invalid connect
ion
state. |
**示例:**
...
...
@@ -1030,8 +1030,8 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
@@ -1082,8 +1082,8 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
@@ -1129,7 +1129,7 @@ unregister(token: number, callback: AsyncCallback\<void>): void;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360208 | The token
i
s not registered. |
**示例:**
...
...
@@ -1174,7 +1174,7 @@ unregister(token: number): Promise\<void>;
| ------- | -------------------------------------------- |
| 3 | Failed to flatten the object. |
| 7 | The object is null. |
| 29360208 | The token
ha
s not registered. |
| 29360208 | The token
i
s not registered. |
**示例:**
...
...
@@ -1213,8 +1213,8 @@ unregisterContinuation(token: number, callback: AsyncCallback\<void>): void;
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
@@ -1262,8 +1262,8 @@ unregisterContinuation(token: number): Promise\<void>;
| 错误码ID | 错误信息 |
| ------- | -------------------------------------------- |
| 401 | The parameter check failed. |
| 16600001 | The system ability work abnormally. |
| 16600002 | The specified token or callback
ha
s not registered. |
| 16600001 | The system ability work
s
abnormally. |
| 16600002 | The specified token or callback
i
s not registered. |
**示例:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录