Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
3ed8d696
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看板
提交
3ed8d696
编写于
6月 03, 2023
作者:
史
史晓晓
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
权限changlog添加
Signed-off-by:
N
史晓晓
<
shixiaoxiao.30044129@huawei.com
>
上级
6be56b3d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
53 addition
and
0 deletion
+53
-0
zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.2/changelogs-device_manager.md
...angelogs/OpenHarmony_4.0.8.2/changelogs-device_manager.md
+53
-0
未找到文件。
zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.2/changelogs-device_manager.md
0 → 100644
浏览文件 @
3ed8d696
# 设备管理ChangeLog
## cl.device_manager.1 接口权限变更
从Opeharmonny 4.0.8.2版本开始,全部接口新增权限校验。
**变更影响**
在Opeharmonny 4.0.8.2之后版本开发的应用,需要持有相应权限,否则无法正常调用接口。
**关键的接口/组件变更**
| 模块名 | 类名 | 方法/属性/枚举/常量 | 新增权限 |
| ------------------------- | ------------------- | ------------------------------------------------------------ | -------- |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
createDeviceManager(bundleName: string, callback: AsyncCallback
<
DeviceManager
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
release(): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getTrustedDeviceListSync(): Array
<
DeviceInfo
>
| ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getTrustedDeviceList(callback:AsyncCallback
<
Array
<
DeviceInfo
>>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getTrustedDeviceList(): Promise
<
Array
<
DeviceInfo
>>
| ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getLocalDeviceInfoSync():
[
DeviceInfo
](
#deviceinfo
)
| ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getLocalDeviceInfo(callback:AsyncCallback
<
DeviceInfo
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getLocalDeviceInfo(): Promise
<
DeviceInfo
>
| ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getDeviceInfo(networkId: string, callback:AsyncCallback
<
DeviceInfo
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
getDeviceInfo(networkId: string): Promise
<
DeviceInfo
>
| ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
startDeviceDiscovery(subscribeInfo: SubscribeInfo): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
startDeviceDiscovery(subscribeInfo: SubscribeInfo, filterOptions?: string): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
stopDeviceDiscovery(subscribeId: number): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
publishDeviceDiscovery(publishInfo: PublishInfo): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
unPublishDeviceDiscovery(publishId: number): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
authenticateDevice(deviceInfo: DeviceInfo, authParam: AuthParam, callback: AsyncCallback
<
{deviceId: string, pinToken ?: number}
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
unAuthenticateDevice(deviceInfo: DeviceInfo): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback
<
{deviceId: string, level: number}
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
setUserOperation(operateAction: number, params: string): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
requestCredentialRegisterInfo(requestInfo: string, callback: AsyncCallback
<
{
registerInfo:
string
}
>
): void; | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
importCredential(credentialInfo: string, callback: AsyncCallback
<
{
resultInfo:
string
}
>
): void; | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
deleteCredential(queryInfo: string, callback: AsyncCallback
<
{
resultInfo:
string
}
>
): void; | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'uiStateChange', callback: Callback
<
{ param: string}
>
): void; | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'uiStateChange', callback?: Callback
<
{ param: string}
>
): void; | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'deviceStateChange', callback: Callback
<
{ action: DeviceStateChangeAction, device: DeviceInfo }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'deviceStateChange', callback?: Callback
<
{ action: DeviceStateChangeAction, device: DeviceInfo }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'deviceFound', callback: Callback
<
{ subscribeId: number, device: DeviceInfo }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'deviceFound', callback?: Callback
<
{ subscribeId: number, device: DeviceInfo }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'discoverFail', callback: Callback
<
{ subscribeId: number, reason: number }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'discoverFail', callback?: Callback
<
{ subscribeId: number, reason: number }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'publishSuccess', callback: Callback
<
{ publishId: number }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'publishSuccess', callback?: Callback
<
{ publishId: number }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'publishFail', callback: Callback
<
{ publishId: number, reason: number }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'publishFail', callback?: Callback
<
{ publishId: number, reason: number }
>
): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
on(type: 'serviceDie', callback: () =
>
void): void | ohos.permission.ACCESS_SERVICE_DM |
| @ohos.distributedHardware.deviceManager | deviceManager |
**function**
off(type: 'serviceDie', callback?: () =
>
void): void | ohos.permission.ACCESS_SERVICE_DM |
**适配指导**
调用以上接口,需要申请相应的权限才能正常调用。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录