openharmony 鸿蒙 changelogs-nfc

2023-06-24 浏览 (617)

Changelog of NFC JS APIs in the Communication Subsystem

cl.nfc.1 API Change

Deprecated some NFC JS APIs in API versions 6 to 8 because the APIs cannot throw error codes, and added new APIs in API version 9 instead.

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

Change Impact

The deprecated 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

See the following: @ohos.nfc.cardEmulation (Standard NFC Card Emulation)

@ohos.nfc.controller (Standard NFC)

@ohos.nfc.tag (Standard NFC Tags)

tagSession (Standard NFC Tag Session)


## 你可能感兴趣的鸿蒙文章

[harmony 鸿蒙Readme](/blog/0a262b84a3ef4f2f83161785dd4e5e10) 

[harmony 鸿蒙Example Subsystem Changelog](/blog/b47a115750ce4ec79cc7f819ee1d479b) 

[harmony 鸿蒙Ability Framework Changelog](/blog/c1b97c4cc2e04237a0f345b33368136a) 

[harmony 鸿蒙Account Subsystem Changelog](/blog/7e6e35214a634f689054072de21317b7) 

[harmony 鸿蒙ArkUI Subsystem ChangeLog](/blog/29d85ce72c924e13a3b89fe0292774dc) 

[harmony 鸿蒙Multimedia Subsystem Changelog](/blog/1184f00c64cc4f8c810c6b0f313184a9) 

[harmony 鸿蒙Common Library Subsystem Changelog](/blog/55670823bf594844a62b9da680cb0f49) 

[harmony 鸿蒙Distributed Data Management Subsystem JS API Changelog](/blog/1c1ef13917aa4a188cea8b0a53a9f4e1) 

[harmony 鸿蒙File Management Subsystem Changelog](/blog/fb2e10c7741b4305a092d10f8692b4bd) 

[harmony 鸿蒙Input Method Framework ChangeLog](/blog/ac24e40db07e4cfea119dd3e2cf7c2a6) 

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