未验证 提交 03f588a1 编写于 作者: O openharmony_ci 提交者: Gitee

!4420 update nfc API8 doc

Merge pull request !4420 from 刘嘉伟/master
......@@ -71,7 +71,7 @@ on(type: "hceCmd", callback: AsyncCallback<number[]>): void;
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------- | ---- | -------------------------------------------- |
| hceCmd | string | 是 | 订阅的事件类型 |
| type | string | 是 | 固定填"hceCmd"字符串 |
| callback | AsyncCallback<number[]> | 是 | 订阅的事件回调,入参是符合APDU协议的数据数组 |
### sendResponse
......
......@@ -74,17 +74,17 @@ isNfcOpen(): boolean
## controller.getNfcState
getNfcState(): boolean
getNfcState(): NfcState
查询NFC是否打开
查询NFC状态
**系统能力**:SystemCapability.Communication.NFC
**返回值:**
| **类型** | **说明** |
| -------- | ----------------------------------- |
| boolean | true:NFC打开,&nbsp;false:NFC关闭。 |
| -------- | ---------------------- |
| NfcState | 详细请见NfcState枚举值 |
## controller.on('nfcStateChange')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册