1.1K Star 6.2K Fork 5K

OpenHarmony / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
js-apidiff-driver.md 2.61 KB
一键复制 编辑 原始数据 按行查看 历史
时睿 提交于 2023-10-26 20:15 . 同步apidiff
操作 旧版本 新版本 d.ts文件
新增 NA 类名:DriverExtensionAbility;
方法or属性:context: DriverExtensionContext;
@ohos.app.ability.DriverExtensionAbility.d.ts
新增 NA 类名:DriverExtensionAbility;
方法or属性:onInit(want: Want): void;
@ohos.app.ability.DriverExtensionAbility.d.ts
新增 NA 类名:DriverExtensionAbility;
方法or属性:onRelease(): void;
@ohos.app.ability.DriverExtensionAbility.d.ts
新增 NA 类名:DriverExtensionAbility;
方法or属性:onConnect(want: Want): rpc.RemoteObject | Promise<rpc.RemoteObject>;
@ohos.app.ability.DriverExtensionAbility.d.ts
新增 NA 类名:DriverExtensionAbility;
方法or属性:onDisconnect(want: Want): void | Promise<void>;
@ohos.app.ability.DriverExtensionAbility.d.ts
新增 NA 类名:DriverExtensionAbility;
方法or属性:onDump(params: Array<string>): Array<string>;
@ohos.app.ability.DriverExtensionAbility.d.ts
新增 NA 类名:deviceManager;
方法or属性:function queryDevices(busType?: number): Array<Readonly<Device>>;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:deviceManager;
方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>,

callback: AsyncCallback<{deviceId: number, remote: rpc.IRemoteObject}>): void;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:deviceManager;
方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback<number>): Promise<{deviceId: number,

remote: rpc.IRemoteObject}>;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:deviceManager;
方法or属性:function unbindDevice(deviceId: number, callback: AsyncCallback<number>): void;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:deviceManager;
方法or属性:function unbindDevice(deviceId: number): Promise<number>;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:BusType;
方法or属性:USB = 1
@ohos.driver.deviceManager.d.ts
新增 NA 类名:Device;
方法or属性:busType: BusType;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:Device;
方法or属性:deviceId: number;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:Device;
方法or属性:description: string;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:vendorId: number;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:productId: number;
@ohos.driver.deviceManager.d.ts
新增 NA 类名:DriverExtensionContext;
方法or属性:updateDriverState(): void;
DriverExtensionContext.d.ts
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs
OpenHarmony-4.0-Release

搜索帮助