提交 51dd0f3a 编写于 作者: W wujie

docs: Rectification of inconsistency between docs and dts -release

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