操作 | 旧版本 | 新版本 | d.ts文件 |
---|---|---|---|
新增 | NA | 类名:sourcefile; 方法or属性:export type DriverExtensionContext = _DriverExtensionContext; |
@ohos.app.ability.DriverExtensionAbility.d.ts |
权限有变化 | 类名:deviceManager; 方法or属性:function queryDevices(busType?: number): Array<Readonly<Device>>; 旧版本信息: |
类名:deviceManager; 方法or属性:function queryDevices(busType?: number): Array<Readonly<Device>>; 新版本信息:ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER |
@ohos.driver.deviceManager.d.ts |
权限有变化 | 类名:deviceManager; 方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>, callback: AsyncCallback<{deviceId: number, remote: rpc.IRemoteObject}>): void; 旧版本信息: |
类名:deviceManager; 方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>, callback: AsyncCallback<{deviceId: number, remote: rpc.IRemoteObject}>): void; 新版本信息:ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER |
@ohos.driver.deviceManager.d.ts |
权限有变化 | 类名:deviceManager; 方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<{deviceId: number, remote: rpc.IRemoteObject}>; 旧版本信息: |
类名:deviceManager; 方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<{deviceId: number, remote: rpc.IRemoteObject}>; 新版本信息:ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER |
@ohos.driver.deviceManager.d.ts |
权限有变化 | 类名:deviceManager; 方法or属性:function unbindDevice(deviceId: number, callback: AsyncCallback<number>): void; 旧版本信息: |
类名:deviceManager; 方法or属性:function unbindDevice(deviceId: number, callback: AsyncCallback<number>): void; 新版本信息:ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER |
@ohos.driver.deviceManager.d.ts |
权限有变化 | 类名:deviceManager; 方法or属性:function unbindDevice(deviceId: number): Promise<number>; 旧版本信息: |
类名:deviceManager; 方法or属性:function unbindDevice(deviceId: number): Promise<number>; 新版本信息:ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER |
@ohos.driver.deviceManager.d.ts |