未验证 提交 020b2790 编写于 作者: O openharmony_ci 提交者: Gitee

!16676 docs: 【nfc】Rectification of inconsistency between docs and dts - release

Merge pull request !16676 from wujie/OpenHarmony-3.2-Release
...@@ -118,8 +118,8 @@ if (!hasHceCap) { ...@@ -118,8 +118,8 @@ if (!hasHceCap) {
} }
var elementName = { var elementName = {
"bundleName": "com.test.cardemulation", "bundleName": "com.example.myapplication",
"abilityName": "com.test.cardemulation.MainAbility", "abilityName": "EntryAbility",
}; };
var isDefaultService = cardEmulation.isDefaultService(elementName, cardEmulation.CardType.PAYMENT); var isDefaultService = cardEmulation.isDefaultService(elementName, cardEmulation.CardType.PAYMENT);
console.log('is the app is default service for this card type: ' + isDefaultService); console.log('is the app is default service for this card type: ' + isDefaultService);
......
...@@ -64,7 +64,7 @@ openNfc(): boolean ...@@ -64,7 +64,7 @@ openNfc(): boolean
## controller.enableNfc<sup>9+</sup> ## controller.enableNfc<sup>9+</sup>
enableNfc(): boolean enableNfc(): void
打开NFC开关。 打开NFC开关。
...@@ -101,7 +101,7 @@ closeNfc(): boolean ...@@ -101,7 +101,7 @@ closeNfc(): boolean
## controller.disableNfc<sup>9+</sup> ## controller.disableNfc<sup>9+</sup>
disableNfc(): boolean disableNfc(): void
关闭NFC开关。 关闭NFC开关。
......
...@@ -183,8 +183,6 @@ isTagConnected(): boolean ...@@ -183,8 +183,6 @@ isTagConnected(): boolean
> **说明:** > **说明:**
> 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用[tagSession.isConnected](#tagsessionisconnected9)替代。 > 从 API version 7 开始支持,从 API version 9 开始废弃,建议使用[tagSession.isConnected](#tagsessionisconnected9)替代。
**需要权限:** ohos.permission.NFC_TAG
**系统能力:** SystemCapability.Communication.NFC.Tag **系统能力:** SystemCapability.Communication.NFC.Tag
**返回值:** **返回值:**
...@@ -211,8 +209,6 @@ isConnected(): boolean ...@@ -211,8 +209,6 @@ isConnected(): boolean
检查是否已与标签建立连接。 检查是否已与标签建立连接。
**需要权限:** ohos.permission.NFC_TAG
**系统能力:** SystemCapability.Communication.NFC.Tag **系统能力:** SystemCapability.Communication.NFC.Tag
**返回值:** **返回值:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册