openharmony 鸿蒙 changelogs-usb

2023-06-24 浏览 (359)

USB Subsystem API Changelog

cl.usb_manager.1 SDK API Deletion

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

The @ohos.usbV9.d.ts file is replaced by the @ohos.usbManager.d.ts file.

New BundleOriginal BundleDeleted Bundle
ohos.usbManager.d.tsohos.usb.d.tsohos.usbV9.d.ts

You need to import @ohos.usbManager to use USB service APIs.

import usbManager from '@ohos.usbManager';

Adaptation Guide

For details about usage of each API, see the API Reference.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙HUKS Changelog

harmony 鸿蒙Web Subsystem Changelog

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