openharmony 鸿蒙 changelogs-usb

2023-06-24 浏览 (421)

USB Subsystem API Changelog

cl.usb_manager.1 Bundle Name Change

For applications developed based on earlier versions, you need to change the name of the imported bundle. Otherwise, the original service logic will be affected.

Key API/Component Changes

Original Bundle NameNew Bundle Name
ohos.usbV9.d.tsohos.usbManager.d.ts

Adaptation Guide

Change @ohos.usbV9 to @ohos.usbManager when importing the bundle.

cl.usb_manager.2 API Parameter Type Change

For applications developed based on earlier versions, you need to modify the parameter type. Otherwise, the original service logic will be affected.

Key API/Component Changes

Original Class NameNew Class Name
interface USBConfiginterface USBConfiguration
Original NamespaceNew Namespace
@namespace usbV9@namespace usbManager
Bundle NameOriginal APINew API
ohos.usbManager.d.tsfunction setConfiguration(pipe: USBDevicePipe, config: USBConfig): number;function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number;

Adaptation Guide

When calling setConfiguration, change the parameter type from USBConfig to USBConfiguration.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Subsystem Changelog

harmony 鸿蒙ANS Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

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