Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
2284ff7a
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看板
提交
2284ff7a
编写于
7月 11, 2023
作者:
史
史晓晓
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改说明
Signed-off-by:
N
史晓晓
<
shixiaoxiao.30044129@huawei.com
>
上级
e5dca439
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
149 addition
and
162 deletion
+149
-162
zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md
...on-dev/reference/apis/js-apis-distributedDeviceManager.md
+121
-134
zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.2/changelogs-distributedDeviceManager.md
...penHarmony_4.0.9.2/changelogs-distributedDeviceManager.md
+28
-28
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md
浏览文件 @
2284ff7a
此差异已折叠。
点击以展开。
zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.2/changelogs-distributedDeviceManager.md
浏览文件 @
2284ff7a
...
...
@@ -13,34 +13,34 @@
| 模块名 | 类名 | 新增接口声明 |
| ------------------------------------ | ------------------- | ------------------------------------------------------------ |
| @ohos.distributedDeviceManager | function
|
**function**
createDeviceManager(bundleName: string, callback: AsyncCallback
<
DeviceManager
>
): void;
|
| @ohos.distributedDeviceManager |
deviceManager |
**function**
releaseDeviceManager(
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
getAvailableDeviceListSync(): Array
<
DeviceBasicInfo
>
; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
getAvailableDeviceList(callback:AsyncCallback
<
Array
<
DeviceBasicInfo
>>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
getAvailableDeviceList(): Promise
<
Array
<
DeviceBasicInfo
>>
; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
getLocalDeviceNetworkIdSync
(): string; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
getLocalDeviceNameSync
(): string; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
getLocalDeviceTypeSync
(): number; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
getLocalDeviceIdSync
(): string; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
getDeviceNameSync
(networkId: string): string; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
getDeviceTypeSync
(networkId: string): number; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
startDiscovering(discoverParameter:string, filterOptions?: string
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
stopDiscovering(): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
bindTarget(deviceId: string, bindParam: BindParam
, callback: AsyncCallback
<
{deviceId: string}
>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
unbindTarget(deviceId: string): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
replyUiAction(action: number, params
: string): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
on(type: 'replyResult', callback: Callback
<
{ param: string}
>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
off(type: 'replyResult', callback?: Callback
<
{ param: string}
>
): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
on(type: 'deviceStatusChange', callback: Callback
<
{ action: DeviceStatus
Change, device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
off(type: 'deviceStatusChange', callback?: Callback
<
{ action: DeviceStatus
Change, device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
on(type: 'discoverSuccess', callback: Callback
<
{ device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
off(type: 'discoverSuccess', callback?: Callback
<
{ device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
on(type: 'deviceNameChange', callback: Callback
<
{ deviceName: string }
>
): void; |
| @ohos.distributedDeviceManager |
d
eviceManager |
**function**
off(type: 'deviceNameChange', callback?: Callback
<
{ deviceName: string }
>
): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
on(type: 'discoverFail
', callback: Callback
<
{ reason: number }
>
): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
off(type: 'discoverFail
', callback?: Callback
<
{ reason: number }
>
): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
on(type: 'serviceDie', callback: () =
>
void
): void; |
| @ohos.distributedDeviceManager |
deviceManager |
**function**
off(type: 'serviceDie', callback?: () =
>
void
): void; |
| @ohos.distributedDeviceManager | function
|
**function**
createDeviceManager(bundleName: string): DeviceManager;
|
| @ohos.distributedDeviceManager |
function |
**function**
releaseDeviceManager(deviceManager: DeviceManager
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
getAvailableDeviceListSync(): Array
<
DeviceBasicInfo
>
; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
getAvailableDeviceList(callback:AsyncCallback
<
Array
<
DeviceBasicInfo
>>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
getAvailableDeviceList(): Promise
<
Array
<
DeviceBasicInfo
>>
; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
getLocalDeviceNetworkId
(): string; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
getLocalDeviceName
(): string; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
getLocalDeviceType
(): number; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
getLocalDeviceId
(): string; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
getDeviceName
(networkId: string): string; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
getDeviceType
(networkId: string): number; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
startDiscovering(discoverParam: {[key:
string]:
Object} , filterOptions?: {[key:
string]:
Object}
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
stopDiscovering(): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
bindTarget(deviceId: string, bindParam: {[key:
string]:
Object}
, callback: AsyncCallback
<
{deviceId: string}
>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
unbindTarget(deviceId: string): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
replyUiAction(action: number, actionResult
: string): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
on(type: 'replyResult', callback: Callback
<
{ param: string}
>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
off(type: 'replyResult', callback?: Callback
<
{ param: string}
>
): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
on(type: 'deviceStateChange', callback: Callback
<
{ action: DeviceState
Change, device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
off(type: 'deviceStateChange', callback?: Callback
<
{ action: DeviceState
Change, device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
on(type: 'discoverSuccess', callback: Callback
<
{ device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
off(type: 'discoverSuccess', callback?: Callback
<
{ device: DeviceBasicInfo }
>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
on(type: 'deviceNameChange', callback: Callback
<
{ deviceName: string }
>
): void; |
| @ohos.distributedDeviceManager |
D
eviceManager |
**function**
off(type: 'deviceNameChange', callback?: Callback
<
{ deviceName: string }
>
): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
on(type: 'discoverFailure
', callback: Callback
<
{ reason: number }
>
): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
off(type: 'discoverFailure
', callback?: Callback
<
{ reason: number }
>
): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
on(type: 'serviceDie', callback?: Callback
<
{}
>
): void; |
| @ohos.distributedDeviceManager |
DeviceManager |
**function**
off(type: 'serviceDie', callback?: Callback
<
{}
>
): void; |
**适配指导**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录