harmony 鸿蒙js-apidiff-usb

  • 2023-06-24
  • 浏览 (228)

操作 旧版本 新版本 d.ts文件
新增 NA 类名:USBPort;
方法or属性:id: number;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function usbFunctionsFromString(funcs: string): number;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function usbFunctionsToString(funcs: FunctionType): string;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise<boolean>;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function getCurrentFunctions(): FunctionType;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function getPorts(): Array<USBPort>;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function getSupportedModes(portId: number): PortModeType;
@ohos.usb.d.ts
新增 NA 类名:usb;
方法or属性:function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise<boolean>;
@ohos.usb.d.ts
新增 NA 类名:PowerRoleType;
方法or属性:NONE = 0
@ohos.usb.d.ts
新增 NA 类名:DataRoleType;
方法or属性:NONE = 0
@ohos.usb.d.ts
新增 NA 类名:PortModeType;
方法or属性:NONE = 0
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:NONE = 0
@ohos.usb.d.ts
新增 NA 类名:PowerRoleType;
方法or属性:SOURCE = 1
@ohos.usb.d.ts
新增 NA 类名:PowerRoleType;
方法or属性:SINK = 2
@ohos.usb.d.ts
新增 NA 类名:DataRoleType;
方法or属性:HOST = 1
@ohos.usb.d.ts
新增 NA 类名:DataRoleType;
方法or属性:DEVICE = 2
@ohos.usb.d.ts
新增 NA 类名:PortModeType;
方法or属性:UFP = 1
@ohos.usb.d.ts
新增 NA 类名:PortModeType;
方法or属性:DFP = 2
@ohos.usb.d.ts
新增 NA 类名:PortModeType;
方法or属性:DRP = 3
@ohos.usb.d.ts
新增 NA 类名:PortModeType;
方法or属性:NUM_MODES = 4
@ohos.usb.d.ts
新增 NA 类名:USBPortStatus;
方法or属性:currentMode: number;
@ohos.usb.d.ts
新增 NA 类名:USBPortStatus;
方法or属性:currentPowerRole: number;
@ohos.usb.d.ts
新增 NA 类名:USBPortStatus;
方法or属性:currentDataRole: number;
@ohos.usb.d.ts
新增 NA 类名:USBPort;
方法or属性:supportedModes: PortModeType;
@ohos.usb.d.ts
新增 NA 类名:USBPort;
方法or属性:status: USBPortStatus;
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:ACM = 1
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:ECM = 2
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:HDC = 4
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:MTP = 8
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:PTP = 16
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:RNDIS = 32
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:MIDI = 64
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:AUDIO_SOURCE = 128
@ohos.usb.d.ts
新增 NA 类名:FunctionType;
方法or属性:NCM = 256
@ohos.usb.d.ts
新增 NA 类名:usbManager;
方法or属性:function getDevices(): Array<Readonly<USBDevice>>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function connectDevice(device: USBDevice): Readonly<USBDevicePipe>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function hasRight(deviceName: string): boolean;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function requestRight(deviceName: string): Promise<boolean>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function removeRight(deviceName: string): boolean;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function addRight(bundleName: string, deviceName: string): boolean;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function usbFunctionsFromString(funcs: string): number;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function usbFunctionsToString(funcs: FunctionType): string;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise<void>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function getCurrentFunctions(): FunctionType;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function getPorts(): Array<USBPort>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function getSupportedModes(portId: number): PortModeType;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise<void>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function getFileDescriptor(pipe: USBDevicePipe): number;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,

timeout?: number): Promise<number>;
@ohos.usbManager.d.ts
新增 NA 类名:usbManager;
方法or属性:function closePipe(pipe: USBDevicePipe): number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:address: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:attributes: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:attributes: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:interval: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:maxPacketSize: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:direction: USBRequestDirection;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:number: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:type: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBEndpoint;
方法or属性:interfaceId: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:id: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:id: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBPort;
方法or属性:id: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:protocol: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:protocol: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:clazz: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:clazz: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:subClass: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:subClass: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:alternateSetting: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:name: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:name: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:name: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBInterface;
方法or属性:endpoints: Array<USBEndpoint>;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:maxPower: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:isRemoteWakeup: boolean;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:isSelfPowered: boolean;
@ohos.usbManager.d.ts
新增 NA 类名:USBConfiguration;
方法or属性:interfaces: Array<USBInterface>;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:busNum: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevicePipe;
方法or属性:busNum: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:devAddress: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevicePipe;
方法or属性:devAddress: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:serial: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:manufacturerName: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:productName: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:version: string;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:vendorId: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:productId: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBDevice;
方法or属性:configs: Array<USBConfiguration>;
@ohos.usbManager.d.ts
新增 NA 类名:PowerRoleType;
方法or属性:NONE = 0
@ohos.usbManager.d.ts
新增 NA 类名:DataRoleType;
方法or属性:NONE = 0
@ohos.usbManager.d.ts
新增 NA 类名:PortModeType;
方法or属性:NONE = 0
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:NONE = 0
@ohos.usbManager.d.ts
新增 NA 类名:PowerRoleType;
方法or属性:SOURCE = 1
@ohos.usbManager.d.ts
新增 NA 类名:PowerRoleType;
方法or属性:SINK = 2
@ohos.usbManager.d.ts
新增 NA 类名:DataRoleType;
方法or属性:HOST = 1
@ohos.usbManager.d.ts
新增 NA 类名:DataRoleType;
方法or属性:DEVICE = 2
@ohos.usbManager.d.ts
新增 NA 类名:PortModeType;
方法or属性:UFP = 1
@ohos.usbManager.d.ts
新增 NA 类名:PortModeType;
方法or属性:DFP = 2
@ohos.usbManager.d.ts
新增 NA 类名:PortModeType;
方法or属性:DRP = 3
@ohos.usbManager.d.ts
新增 NA 类名:PortModeType;
方法or属性:NUM_MODES = 4
@ohos.usbManager.d.ts
新增 NA 类名:USBPortStatus;
方法or属性:currentMode: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBPortStatus;
方法or属性:currentPowerRole: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBPortStatus;
方法or属性:currentDataRole: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBPort;
方法or属性:supportedModes: PortModeType;
@ohos.usbManager.d.ts
新增 NA 类名:USBPort;
方法or属性:status: USBPortStatus;
@ohos.usbManager.d.ts
新增 NA 类名:USBControlParams;
方法or属性:request: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBControlParams;
方法or属性:target: USBRequestTargetType;
@ohos.usbManager.d.ts
新增 NA 类名:USBControlParams;
方法or属性:reqType: USBControlRequestType;
@ohos.usbManager.d.ts
新增 NA 类名:USBControlParams;
方法or属性:value: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBControlParams;
方法or属性:index: number;
@ohos.usbManager.d.ts
新增 NA 类名:USBControlParams;
方法or属性:data: Uint8Array;
@ohos.usbManager.d.ts
新增 NA 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_DEVICE = 0
@ohos.usbManager.d.ts
新增 NA 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_INTERFACE = 1
@ohos.usbManager.d.ts
新增 NA 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2
@ohos.usbManager.d.ts
新增 NA 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_OTHER = 3
@ohos.usbManager.d.ts
新增 NA 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_STANDARD = 0
@ohos.usbManager.d.ts
新增 NA 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_CLASS = 1
@ohos.usbManager.d.ts
新增 NA 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_VENDOR = 2
@ohos.usbManager.d.ts
新增 NA 类名:USBRequestDirection;
方法or属性:USB_REQUEST_DIR_TO_DEVICE = 0
@ohos.usbManager.d.ts
新增 NA 类名:USBRequestDirection;
方法or属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:ACM = 1
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:ECM = 2
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:HDC = 4
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:MTP = 8
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:PTP = 16
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:RNDIS = 32
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:MIDI = 64
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:AUDIO_SOURCE = 128
@ohos.usbManager.d.ts
新增 NA 类名:FunctionType;
方法or属性:NCM = 256
@ohos.usbManager.d.ts
废弃版本有变化 类名:usb;
方法or属性:declare usb
旧版本信息:
类名:usb;
方法or属性:declare usb
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function getDevices(): Array<Readonly<USBDevice>>;
旧版本信息:
类名:usb;
方法or属性:function getDevices(): Array<Readonly<USBDevice>>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function connectDevice(device: USBDevice): Readonly<USBDevicePipe>;
旧版本信息:
类名:usb;
方法or属性:function connectDevice(device: USBDevice): Readonly<USBDevicePipe>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function hasRight(deviceName: string): boolean;
旧版本信息:
类名:usb;
方法or属性:function hasRight(deviceName: string): boolean;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function requestRight(deviceName: string): Promise<boolean>;
旧版本信息:
类名:usb;
方法or属性:function requestRight(deviceName: string): Promise<boolean>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;
旧版本信息:
类名:usb;
方法or属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;
旧版本信息:
类名:usb;
方法or属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number;
旧版本信息:
类名:usb;
方法or属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;
旧版本信息:
类名:usb;
方法or属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;
旧版本信息:
类名:usb;
方法or属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function getFileDescriptor(pipe: USBDevicePipe): number;
旧版本信息:
类名:usb;
方法or属性:function getFileDescriptor(pipe: USBDevicePipe): number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number>;
旧版本信息:
类名:usb;
方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,

timeout?: number): Promise<number>;
旧版本信息:
类名:usb;
方法or属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,

timeout?: number): Promise<number>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:usb;
方法or属性:function closePipe(pipe: USBDevicePipe): number;
旧版本信息:
类名:usb;
方法or属性:function closePipe(pipe: USBDevicePipe): number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:interface USBEndpoint
旧版本信息:
类名:USBEndpoint;
方法or属性:interface USBEndpoint
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:address: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:address: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:attributes: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:attributes: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:attributes: number;
旧版本信息:
类名:USBConfig;
方法or属性:attributes: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:interval: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:interval: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:maxPacketSize: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:maxPacketSize: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:direction: USBRequestDirection;
旧版本信息:
类名:USBEndpoint;
方法or属性:direction: USBRequestDirection;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:number: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:number: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:type: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:type: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBEndpoint;
方法or属性:interfaceId: number;
旧版本信息:
类名:USBEndpoint;
方法or属性:interfaceId: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:interface USBInterface
旧版本信息:
类名:USBInterface;
方法or属性:interface USBInterface
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:id: number;
旧版本信息:
类名:USBInterface;
方法or属性:id: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:id: number;
旧版本信息:
类名:USBConfig;
方法or属性:id: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:protocol: number;
旧版本信息:
类名:USBInterface;
方法or属性:protocol: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:protocol: number;
旧版本信息:
类名:USBDevice;
方法or属性:protocol: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:clazz: number;
旧版本信息:
类名:USBInterface;
方法or属性:clazz: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:clazz: number;
旧版本信息:
类名:USBDevice;
方法or属性:clazz: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:subClass: number;
旧版本信息:
类名:USBInterface;
方法or属性:subClass: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:subClass: number;
旧版本信息:
类名:USBDevice;
方法or属性:subClass: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:alternateSetting: number;
旧版本信息:
类名:USBInterface;
方法or属性:alternateSetting: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:name: string;
旧版本信息:
类名:USBInterface;
方法or属性:name: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:name: string;
旧版本信息:
类名:USBConfig;
方法or属性:name: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:name: string;
旧版本信息:
类名:USBDevice;
方法or属性:name: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBInterface;
方法or属性:endpoints: Array<USBEndpoint>;
旧版本信息:
类名:USBInterface;
方法or属性:endpoints: Array<USBEndpoint>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:interface USBConfig
旧版本信息:
类名:USBConfig;
方法or属性:interface USBConfig
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:maxPower: number;
旧版本信息:
类名:USBConfig;
方法or属性:maxPower: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:isRemoteWakeup: boolean;
旧版本信息:
类名:USBConfig;
方法or属性:isRemoteWakeup: boolean;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:isSelfPowered: boolean;
旧版本信息:
类名:USBConfig;
方法or属性:isSelfPowered: boolean;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBConfig;
方法or属性:interfaces: Array<USBInterface>;
旧版本信息:
类名:USBConfig;
方法or属性:interfaces: Array<USBInterface>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:interface USBDevice
旧版本信息:
类名:USBDevice;
方法or属性:interface USBDevice
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:busNum: number;
旧版本信息:
类名:USBDevice;
方法or属性:busNum: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevicePipe;
方法or属性:busNum: number;
旧版本信息:
类名:USBDevicePipe;
方法or属性:busNum: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:devAddress: number;
旧版本信息:
类名:USBDevice;
方法or属性:devAddress: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevicePipe;
方法or属性:devAddress: number;
旧版本信息:
类名:USBDevicePipe;
方法or属性:devAddress: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:serial: string;
旧版本信息:
类名:USBDevice;
方法or属性:serial: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:manufacturerName: string;
旧版本信息:
类名:USBDevice;
方法or属性:manufacturerName: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:productName: string;
旧版本信息:
类名:USBDevice;
方法or属性:productName: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:version: string;
旧版本信息:
类名:USBDevice;
方法or属性:version: string;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:vendorId: number;
旧版本信息:
类名:USBDevice;
方法or属性:vendorId: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:productId: number;
旧版本信息:
类名:USBDevice;
方法or属性:productId: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevice;
方法or属性:configs: Array<USBConfig>;
旧版本信息:
类名:USBDevice;
方法or属性:configs: Array<USBConfig>;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBDevicePipe;
方法or属性:interface USBDevicePipe
旧版本信息:
类名:USBDevicePipe;
方法or属性:interface USBDevicePipe
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:interface USBControlParams
旧版本信息:
类名:USBControlParams;
方法or属性:interface USBControlParams
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:request: number;
旧版本信息:
类名:USBControlParams;
方法or属性:request: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:target: USBRequestTargetType;
旧版本信息:
类名:USBControlParams;
方法or属性:target: USBRequestTargetType;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:reqType: USBControlRequestType;
旧版本信息:
类名:USBControlParams;
方法or属性:reqType: USBControlRequestType;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:value: number;
旧版本信息:
类名:USBControlParams;
方法or属性:value: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:index: number;
旧版本信息:
类名:USBControlParams;
方法or属性:index: number;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlParams;
方法or属性:data: Uint8Array;
旧版本信息:
类名:USBControlParams;
方法or属性:data: Uint8Array;
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestTargetType;
方法or属性:export enum USBRequestTargetType
旧版本信息:
类名:USBRequestTargetType;
方法or属性:export enum USBRequestTargetType
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_DEVICE = 0
旧版本信息:
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_DEVICE = 0
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_INTERFACE = 1
旧版本信息:
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_INTERFACE = 1
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2
旧版本信息:
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_OTHER = 3
旧版本信息:
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_OTHER = 3
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlRequestType;
方法or属性:export enum USBControlRequestType
旧版本信息:
类名:USBControlRequestType;
方法or属性:export enum USBControlRequestType
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_STANDARD = 0
旧版本信息:
类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_STANDARD = 0
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_CLASS = 1
旧版本信息:
类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_CLASS = 1
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_VENDOR = 2
旧版本信息:
类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_VENDOR = 2
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestDirection;
方法or属性:export enum USBRequestDirection
旧版本信息:
类名:USBRequestDirection;
方法or属性:export enum USBRequestDirection
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestDirection;
方法or属性:USB_REQUEST_DIR_TO_DEVICE = 0
旧版本信息:
类名:USBRequestDirection;
方法or属性:USB_REQUEST_DIR_TO_DEVICE = 0
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
废弃版本有变化 类名:USBRequestDirection;
方法or属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80
旧版本信息:
类名:USBRequestDirection;
方法or属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80
新版本信息:9
代替接口: ohos.usbManager
@ohos.usb.d.ts
函数有变化 类名:usb;
方法or属性:function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise<number>;
类名:usb;
方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number>;
@ohos.usb.d.ts
函数有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_INTERFACE
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_INTERFACE = 1
@ohos.usb.d.ts
函数有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_ENDPOINT
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2
@ohos.usb.d.ts
函数有变化 类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_OTHER
类名:USBRequestTargetType;
方法or属性:USB_REQUEST_TARGET_OTHER = 3
@ohos.usb.d.ts
函数有变化 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_CLASS
类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_CLASS = 1
@ohos.usb.d.ts
函数有变化 类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_VENDOR
类名:USBControlRequestType;
方法or属性:USB_REQUEST_TYPE_VENDOR = 2
@ohos.usb.d.ts

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API差异报告

harmony 鸿蒙js-apidiff-ability

harmony 鸿蒙js-apidiff-accessibility

harmony 鸿蒙js-apidiff-account

harmony 鸿蒙js-apidiff-application

harmony 鸿蒙js-apidiff-arkui

harmony 鸿蒙js-apidiff-battery

harmony 鸿蒙js-apidiff-bundle

harmony 鸿蒙js-apidiff-communication

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

0  赞