harmony 鸿蒙USB Subsystem API Changelog
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 Name | New Bundle Name | 
|---|---|
| ohos.usbV9.d.ts | ohos.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 Name | New Class Name | 
|---|---|
| interface USBConfig | interface USBConfiguration | 
| Original Namespace | New Namespace | 
|---|---|
| @namespace usbV9 | @namespace usbManager | 
| Bundle Name | Original API | New API | 
|---|---|---|
| ohos.usbManager.d.ts | function 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
                        
                            0
                        
                        
                             赞
                        
                    
                    
                - 所属分类: 后端技术
 - 本文标签:
 
热门推荐
- 
                        2、 - 优质文章
 - 
                        3、 gate.io
 - 
                        7、 openharmony
 - 
                        9、 golang