openharmony 鸿蒙 js-apidiff-driver

2023-10-30 浏览 (334)
操作旧版本新版本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

你可能感兴趣的鸿蒙文章

harmony 鸿蒙js-apidiff-ability

harmony 鸿蒙js-apidiff-accessibility

harmony 鸿蒙js-apidiff-account

harmony 鸿蒙js-apidiff-ai

harmony 鸿蒙js-apidiff-application

harmony 鸿蒙js-apidiff-arkui

harmony 鸿蒙js-apidiff-bundle

harmony 鸿蒙js-apidiff-communication

harmony 鸿蒙js-apidiff-compiler-and-runtime

harmony 鸿蒙js-apidiff-customization

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/a52ccd9903e74b1bbcb781c1ce0bc2a0