提交 6ec8c369 编写于 作者: A annie_wangli

update docs

Signed-off-by: Nannie_wangli <annie.wangli@huawei.com>
上级 429a9960
...@@ -61,7 +61,7 @@ Reads the content of this active tag. This method uses a promise to return the r ...@@ -61,7 +61,7 @@ Reads the content of this active tag. This method uses a promise to return the r
- Example - Example
``` ```
import connectedTag from '@ohos.connectedTag'; import connectedTag from '@ohos.connectedTag';
connectedTag.readNdefTag().then(result => { connectedTag.readNdefTag().then(result => {
console.log("promise recv ndef response: " + result); console.log("promise recv ndef response: " + result);
}); });
...@@ -151,7 +151,7 @@ Writes data to this active tag. This method uses an asynchronous callback to ret ...@@ -151,7 +151,7 @@ Writes data to this active tag. This method uses an asynchronous callback to ret
console.error(`failed to write event because ${err.code}`); console.error(`failed to write event because ${err.code}`);
return; return;
} }
// Data is written to the tag. // Data is written to the tag.
console.log(`success to write event: ${value}`); console.log(`success to write event: ${value}`);
}); });
...@@ -176,8 +176,8 @@ Registers the NFC field strength state events. ...@@ -176,8 +176,8 @@ Registers the NFC field strength state events.
- Enumerates the field strength states. - Enumerates the field strength states.
| **Value**| **Description**| | **Value**| **Description**|
| -------- | -------- | | -------- | -------- |
| 0 | NFC disconnected.| | 0 | Field off. |
| 1 | NFC connected.| | 1 | Field on. |
## connectedTag.off('notify') ## connectedTag.off('notify')
...@@ -219,5 +219,5 @@ Enumerates the NFC states. ...@@ -219,5 +219,5 @@ Enumerates the NFC states.
| Name| Default Value| Description| | Name| Default Value| Description|
| -------- | -------- | -------- | | -------- | -------- | -------- |
| NFC_RF_LEAVE | 0 | NFC disconnected.| | NFC_RF_LEAVE | 0 | Field off. |
| NFC_RF_ENTER | 1 | NFC connected.| | NFC_RF_ENTER | 1 | Field on. |
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册