Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
64602450
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
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看板
提交
64602450
编写于
6月 26, 2023
作者:
史
史晓晓
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改<>为转义字符
Signed-off-by:
N
史晓晓
<
shixiaoxiao.30044129@huawei.com
>
上级
cefc688b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
23 deletion
+23
-23
zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md
...on-dev/reference/apis/js-apis-distributedDeviceManager.md
+13
-13
zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.2/changelogs-distributedDeviceManager.md
...penHarmony_4.0.9.2/changelogs-distributedDeviceManager.md
+10
-10
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md
浏览文件 @
64602450
...
@@ -660,7 +660,7 @@ unPublishDeviceDiscovery(publishId: number): void
...
@@ -660,7 +660,7 @@ unPublishDeviceDiscovery(publishId: number): void
### bindDevice
### bindDevice
bindDevice(deviceId: string, bindParam: BindParam, callback: AsyncCallback
<
{
deviceId:
string
}
>
): void;
bindDevice(deviceId: string, bindParam: BindParam, callback: AsyncCallback
<
{deviceId: string}
>
): void;
认证设备。
认证设备。
...
@@ -828,7 +828,7 @@ setUserOperation(operateAction: number, params: string): void;
...
@@ -828,7 +828,7 @@ setUserOperation(operateAction: number, params: string): void;
### requestCredentialRegisterInfo
### requestCredentialRegisterInfo
requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback
<
{
registerInfo:
string
}
>
): void;
requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback
<
{registerInfo: string}
>
): void;
获取凭据的注册信息。
获取凭据的注册信息。
...
@@ -841,7 +841,7 @@ requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback<{regi
...
@@ -841,7 +841,7 @@ requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback<{regi
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| ------------- | --------------- | ---- | ------------------- |
| ------------- | --------------- | ---- | ------------------- |
| requestInfo | string | 是 | 请求凭据信息。 |
| requestInfo | string | 是 | 请求凭据信息。 |
| callback | AsyncCallback
<
{
registerInfo:
string
}
>
| 是 | 凭据的注册信息回调。 |
| callback | AsyncCallback
<
{registerInfo: string}
>
| 是 | 凭据的注册信息回调。 |
**示例:**
**示例:**
...
@@ -865,7 +865,7 @@ requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback<{regi
...
@@ -865,7 +865,7 @@ requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback<{regi
### importCredential
### importCredential
importCredential(credentialInfo: string, callback: AsyncCallback
<
{
resultInfo:
string
}
>
): void;
importCredential(credentialInfo: string, callback: AsyncCallback
<
{resultInfo: string}
>
): void;
导入凭据信息。
导入凭据信息。
...
@@ -878,7 +878,7 @@ importCredential(credentialInfo: string, callback: AsyncCallback<{resultInfo: st
...
@@ -878,7 +878,7 @@ importCredential(credentialInfo: string, callback: AsyncCallback<{resultInfo: st
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| ------------- | --------------- | ---- | ------------------- |
| ------------- | --------------- | ---- | ------------------- |
| credentialInfo| string | 是 | 导入凭据信息。 |
| credentialInfo| string | 是 | 导入凭据信息。 |
| callback | AsyncCallback
<
{
resultInfo:
string
}
>
| 是 | 导入凭据结果回调。 |
| callback | AsyncCallback
<
{resultInfo: string}
>
| 是 | 导入凭据结果回调。 |
**示例:**
**示例:**
...
@@ -918,7 +918,7 @@ importCredential(credentialInfo: string, callback: AsyncCallback<{resultInfo: st
...
@@ -918,7 +918,7 @@ importCredential(credentialInfo: string, callback: AsyncCallback<{resultInfo: st
### deleteCredential
### deleteCredential
deleteCredential(queryInfo: string, callback: AsyncCallback
<
{
resultInfo:
string
}
>
): void;
deleteCredential(queryInfo: string, callback: AsyncCallback
<
{resultInfo: string}
>
): void;
删除凭据信息。
删除凭据信息。
...
@@ -931,7 +931,7 @@ deleteCredential(queryInfo: string, callback: AsyncCallback<{resultInfo: string}
...
@@ -931,7 +931,7 @@ deleteCredential(queryInfo: string, callback: AsyncCallback<{resultInfo: string}
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| ------------- | --------------- | ---- | ------------------- |
| ------------- | --------------- | ---- | ------------------- |
| queryInfo | string | 是 | 删除凭据信息。 |
| queryInfo | string | 是 | 删除凭据信息。 |
| callback | AsyncCallback
<
{
resultInfo:
string
}
>
| 是 | 删除凭据结果回调。 |
| callback | AsyncCallback
<
{resultInfo: string}
>
| 是 | 删除凭据结果回调。 |
**示例:**
**示例:**
...
@@ -1015,7 +1015,7 @@ off(type: 'uiStateChange', callback?: Callback<{ param: string}>): void;
...
@@ -1015,7 +1015,7 @@ off(type: 'uiStateChange', callback?: Callback<{ param: string}>): void;
### on('deviceStatusChange')
### on('deviceStatusChange')
on(type: 'deviceStatusChange', callback: Callback
<
{
action:
DeviceStatusChange
,
device:
DeviceBasicInfo
}
>
): void;
on(type: 'deviceStatusChange', callback: Callback
<
{ action: DeviceStatusChange, device: DeviceBasicInfo }
>
): void;
注册设备状态回调。
注册设备状态回调。
...
@@ -1042,7 +1042,7 @@ on(type: 'deviceStatusChange', callback: Callback<{ action: DeviceStatusChange,
...
@@ -1042,7 +1042,7 @@ on(type: 'deviceStatusChange', callback: Callback<{ action: DeviceStatusChange,
### off('deviceStatusChange')
### off('deviceStatusChange')
off(type: 'deviceStatusChange', callback?: Callback
<
{
action:
DeviceStatusChange
,
device:
DeviceBasicInfo
}
>
): void;
off(type: 'deviceStatusChange', callback?: Callback
<
{ action: DeviceStatusChange, device: DeviceBasicInfo }
>
): void;
取消注册设备状态回调。
取消注册设备状态回调。
...
@@ -1069,7 +1069,7 @@ off(type: 'deviceStatusChange', callback?: Callback<{ action: DeviceStatusChange
...
@@ -1069,7 +1069,7 @@ off(type: 'deviceStatusChange', callback?: Callback<{ action: DeviceStatusChange
### on('discoverSuccess')
### on('discoverSuccess')
on(type: 'discoverSuccess', callback: Callback
<
{
subscribeId:
number
,
device:
DeviceBasicInfo
}
>
): void;
on(type: 'discoverSuccess', callback: Callback
<
{ subscribeId: number, device: DeviceBasicInfo }
>
): void;
注册发现设备成功回调监听。
注册发现设备成功回调监听。
...
@@ -1096,7 +1096,7 @@ on(type: 'discoverSuccess', callback: Callback<{ subscribeId: number, device: De
...
@@ -1096,7 +1096,7 @@ on(type: 'discoverSuccess', callback: Callback<{ subscribeId: number, device: De
### off('discoverSuccess')
### off('discoverSuccess')
off(type: 'discoverSuccess', callback?: Callback
<
{
subscribeId:
number
,
device:
DeviceBasicInfo
}
>
): void;
off(type: 'discoverSuccess', callback?: Callback
<
{ subscribeId: number, device: DeviceBasicInfo }
>
): void;
取消注册设备发现回调。
取消注册设备发现回调。
...
@@ -1123,7 +1123,7 @@ off(type: 'discoverSuccess', callback?: Callback<{ subscribeId: number, device:
...
@@ -1123,7 +1123,7 @@ off(type: 'discoverSuccess', callback?: Callback<{ subscribeId: number, device:
### on('deviceNameChange')
### on('deviceNameChange')
on(type: 'deviceNameChange', callback: Callback
<
{
deviceName:
string
}
>
): void;
on(type: 'deviceNameChange', callback: Callback
<
{ deviceName: string }
>
): void;
注册设备名称改变回调监听。
注册设备名称改变回调监听。
...
@@ -1150,7 +1150,7 @@ on(type: 'deviceNameChange', callback: Callback<{ deviceName: string }>): void;
...
@@ -1150,7 +1150,7 @@ on(type: 'deviceNameChange', callback: Callback<{ deviceName: string }>): void;
### off('deviceNameChange')
### off('deviceNameChange')
off(type: 'deviceNameChange', callback?: Callback
<
{
deviceName:
string
}
>
): void;
off(type: 'deviceNameChange', callback?: Callback
<
{ deviceName: string }
>
): void;
取消注册设备名称改变回调监听。
取消注册设备名称改变回调监听。
...
...
zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.2/changelogs-distributedDeviceManager.md
浏览文件 @
64602450
...
@@ -26,21 +26,21 @@
...
@@ -26,21 +26,21 @@
| @ohos.distributedDeviceManager | deviceManager |
**function**
getDeviceTypeSync(networkId: string): number; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
getDeviceTypeSync(networkId: string): number; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
startDeviceDiscovery(subscribeId: number, filterOptions?: string): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
startDeviceDiscovery(subscribeId: number, filterOptions?: string): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
stopDeviceDiscovery(subscribeId: number): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
stopDeviceDiscovery(subscribeId: number): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
bindDevice(deviceId: string, bindParam: BindParam, callback: AsyncCallback
<
{
deviceId:
string
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
bindDevice(deviceId: string, bindParam: BindParam, callback: AsyncCallback
<
{deviceId: string}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
unbindDevice(deviceId: string): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
unbindDevice(deviceId: string): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
publishDeviceDiscovery(publishInfo: PublishInfo): void | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
publishDeviceDiscovery(publishInfo: PublishInfo): void | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
unPublishDeviceDiscovery(publishId: number): void | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
unPublishDeviceDiscovery(publishId: number): void | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback
<
{deviceId: string, level: number}
>
): void | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback
<
{deviceId: string, level: number}
>
): void | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
setUserOperation(operateAction: number, params: string): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
setUserOperation(operateAction: number, params: string): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback
<
{
registerInfo:
string
}
>
): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback
<
{registerInfo: string}
>
): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
importCredential(credentialInfo: string, callback: AsyncCallback
<
{
resultInfo:
string
}
>
): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
importCredential(credentialInfo: string, callback: AsyncCallback
<
{resultInfo: string}
>
): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
deleteCredential(queryInfo: string, callback: AsyncCallback
<
{
resultInfo:
string
}
>
): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
deleteCredential(queryInfo: string, callback: AsyncCallback
<
{resultInfo: string}
>
): void; | 否 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'deviceStatusChange', callback: Callback
<
{
action:
DeviceStatusChange
,
device:
DeviceBasicInfo
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'deviceStatusChange', callback: Callback
<
{ action: DeviceStatusChange, device: DeviceBasicInfo }
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'deviceStatusChange', callback?: Callback
<
{
action:
DeviceStatusChange
,
device:
DeviceBasicInfo
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'deviceStatusChange', callback?: Callback
<
{ action: DeviceStatusChange, device: DeviceBasicInfo }
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'discoverSuccess', callback: Callback
<
{
subscribeId:
number
,
device:
DeviceBasicInfo
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'discoverSuccess', callback: Callback
<
{ subscribeId: number, device: DeviceBasicInfo }
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'discoverSuccess', callback?: Callback
<
{
subscribeId:
number
,
device:
DeviceBasicInfo
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'discoverSuccess', callback?: Callback
<
{ subscribeId: number, device: DeviceBasicInfo }
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'deviceNameChange', callback: Callback
<
{
deviceName:
string
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'deviceNameChange', callback: Callback
<
{ deviceName: string }
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'deviceNameChange', callback?: Callback
<
{
deviceName:
string
}
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'deviceNameChange', callback?: Callback
<
{ deviceName: string }
>
): void; | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'discoverFail', callback: Callback
<
{ subscribeId: number, reason: number }
>
): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'discoverFail', callback: Callback
<
{ subscribeId: number, reason: number }
>
): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'discoverFail', callback?: Callback
<
{ subscribeId: number, reason: number }
>
): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
off(type: 'discoverFail', callback?: Callback
<
{ subscribeId: number, reason: number }
>
): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'serviceDie', callback: () =
>
void): void | 是 |
| @ohos.distributedDeviceManager | deviceManager |
**function**
on(type: 'serviceDie', callback: () =
>
void): void | 是 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录