openharmony 鸿蒙 changelogs-nfc

2023-02-17 浏览 (825)

ChangeLog of NFC JS API Changes in the Communication Subsystem

Compared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.2(Mr) has the following API changes in the distributed data management subsystem.

cl.nfc.1 API Change

Some NFC JS APIs in API versions 6 to 8 cannot throw error codes and need to be deprecated and deleted, and then APIs in API version 9 are used instead.

You need to adapt your application based on the following information.

Change Impacts

Some JS APIs in API versions 6 to 8 are affected. Your application needs to adapt new APIs so that it can properly implement functions in the SDK environment of the new version.

Key API/Component Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
api/@ohos.nfc.cardEmulation.d.tscardEmulationFeatureTypeDeprecated
api/@ohos.nfc.cardEmulation.d.tscardEmulationisSupportedDeprecated
api/@ohos.nfc.cardEmulation.d.tscardEmulationhasHceCapabilityAdded
api/@ohos.nfc.controller.d.tsnfcControllerisNfcAvailableDeprecated
api/@ohos.nfc.controller.d.tsnfcControlleropenNfcDeprecated
api/@ohos.nfc.controller.d.tsnfcControllercloseNfcDeprecated
api/@ohos.nfc.controller.d.tsnfcControllerenableNfcAdded
api/@ohos.nfc.controller.d.tsnfcControllerdisableNfcAdded
api/@ohos.nfc.tag.d.tstaggetNfcATagDeprecated
api/@ohos.nfc.tag.d.tstaggetNfcBTagDeprecated
api/@ohos.nfc.tag.d.tstaggetNfcFTagDeprecated
api/@ohos.nfc.tag.d.tstaggetNfcVTagDeprecated
api/@ohos.nfc.tag.d.tstaggetNfcAAdded
api/@ohos.nfc.tag.d.tstaggetNfcBAdded
api/@ohos.nfc.tag.d.tstaggetNfcFAdded
api/@ohos.nfc.tag.d.tstaggetNfcVAdded
api/tag/tagSession.d.tsTagSessiongetTagInfoDeprecated
api/tag/tagSession.d.tsTagSessionconnectTagDeprecated
api/tag/tagSession.d.tsTagSessionresetDeprecated
api/tag/tagSession.d.tsTagSessionisTagConnectedDeprecated
api/tag/tagSession.d.tsTagSessionsetSendDataTimeoutDeprecated
api/tag/tagSession.d.tsTagSessiongetSendDataTimeoutDeprecated
api/tag/tagSession.d.tsTagSessionsendDataDeprecated
api/tag/tagSession.d.tsTagSessiongetMaxSendLengthDeprecated
api/tag/tagSession.d.tsTagSessionconnectAdded
api/tag/tagSession.d.tsTagSessionresetConnectionAdded
api/tag/tagSession.d.tsTagSessionisConnectedAdded
api/tag/tagSession.d.tsTagSessionsetTimeoutAdded
api/tag/tagSession.d.tsTagSessiongetTimeoutAdded
api/tag/tagSession.d.tsTagSessiontransmitAdded
api/tag/tagSession.d.tsTagSessiongetMaxTransmitSizeAdded

Adaptation Guide

View the following API references: @ohos.nfc.cardEmulation (Standard NFC Card Emulation)

@ohos.nfc.controller (Standard NFC)

@ohos.nfc.tag (Standard NFC Tags)

tagSession (Standard NFC Tag Session)


你可能感兴趣的鸿蒙文章

harmony 鸿蒙Account Subsystem Changelog

harmony 鸿蒙Bundle Manager Subsystem ChangeLog

harmony 鸿蒙Multimedia Subsystem ChangeLog

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