| 操作 | 旧版本 | 新版本 | d.ts文件 |
|---|---|---|---|
| API废弃版本变更 | 类名:deviceManager; API声明:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>, callback: AsyncCallback<{ deviceId: number; remote: rpc.IRemoteObject; }>): void; 差异内容:18 | 类名:deviceManager; API声明:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>, callback: AsyncCallback<{ deviceId: number; remote: rpc.IRemoteObject; }>): void; 差异内容:NA | api/@ohos.driver.deviceManager.d.ts |
| API废弃版本变更 | 类名:deviceManager; API声明:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<{ deviceId: number; remote: rpc.IRemoteObject; }>; 差异内容:18 | 类名:deviceManager; API声明:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<{ deviceId: number; remote: rpc.IRemoteObject; }>; 差异内容:NA | api/@ohos.driver.deviceManager.d.ts |
| API废弃版本变更 | 类名:deviceManager; API声明:function bindDeviceDriver(deviceId: number, onDisconnect: AsyncCallback<number>, callback: AsyncCallback<RemoteDeviceDriver>): void; 差异内容:18 | 类名:deviceManager; API声明:function bindDeviceDriver(deviceId: number, onDisconnect: AsyncCallback<number>, callback: AsyncCallback<RemoteDeviceDriver>): void; 差异内容:NA | api/@ohos.driver.deviceManager.d.ts |
| API废弃版本变更 | 类名:deviceManager; API声明:function bindDeviceDriver(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<RemoteDeviceDriver>; 差异内容:18 | 类名:deviceManager; API声明:function bindDeviceDriver(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<RemoteDeviceDriver>; 差异内容:NA | api/@ohos.driver.deviceManager.d.ts |
| API废弃版本变更 | 类名:deviceManager; API声明:function unbindDevice(deviceId: number, callback: AsyncCallback<number>): void; 差异内容:18 | 类名:deviceManager; API声明:function unbindDevice(deviceId: number, callback: AsyncCallback<number>): void; 差异内容:NA | api/@ohos.driver.deviceManager.d.ts |
| API废弃版本变更 | 类名:deviceManager; API声明:function unbindDevice(deviceId: number): Promise<number>; 差异内容:18 | 类名:deviceManager; API声明:function unbindDevice(deviceId: number): Promise<number>; 差异内容:NA | api/@ohos.driver.deviceManager.d.ts |
| 新增错误码 | 类名:deviceManager; API声明:function queryDevices(busType?: number): Array<Readonly<Device>>; 差异内容:NA | 类名:deviceManager; API声明:function queryDevices(busType?: number): Array<Readonly<Device>>; 差异内容:401 | api/@ohos.driver.deviceManager.d.ts |
| 删除API | 类名:deviceManager; API声明:function bindDriverWithDeviceId(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<RemoteDeviceDriver>; 差异内容:function bindDriverWithDeviceId(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<RemoteDeviceDriver>; | NA | api/@ohos.driver.deviceManager.d.ts |
| 删除API | 类名:deviceManager; API声明:function unbindDriverWithDeviceId(deviceId: number): Promise<number>; 差异内容:function unbindDriverWithDeviceId(deviceId: number): Promise<number>; | NA | api/@ohos.driver.deviceManager.d.ts |
| arkts演进版本整改兼容变化 | 类名:global; API声明:declare class DriverExtensionAbility 差异内容:NA | 类名:global; API声明:export default class DriverExtensionAbility 差异内容:NA | api/@ohos.app.ability.DriverExtensionAbility.d.ts |
| arkts演进版本整改兼容变化 | 类名:global; API声明:declare class DriverExtensionContext 差异内容:NA | 类名:global; API声明:export default class DriverExtensionContext 差异内容:NA | api/application/DriverExtensionContext.d.ts |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apidiff-ArkGraphics2D
openharmony 鸿蒙 js-apidiff-ArkGraphics3D
openharmony 鸿蒙 js-apidiff-MediaKit
openharmony 鸿蒙 js-apidiff-InputKit
openharmony 鸿蒙 js-apidiff-BasicServicesKit
openharmony 鸿蒙 js-apidiff-ConnectivityKit
openharmony 鸿蒙 js-apidiff-ArkWeb
openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit