• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Standard NFC Tag
2
3Manages Near-Field Communication (NFC) tags.
4
5> **NOTE**<br>
6> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
7
8
9## **Modules to Import**
10
11```
12import tag from '@ohos.nfc.tag';
13```
14
15
16## tag.getNfcATag
17
18getNfcATag(tagInfo: TagInfo): NfcATag
19
20Obtains an **NfcATag** object, which allows access to the tags that use the NFC-A technology.
21
22**Required permissions**: ohos.permission.NFC_TAG
23
24**System capability**: SystemCapability.Communication.NFC
25
26**Return value**
27
28| **Type**| **Description**|
29| -------- | -------- |
30| NfcATag | **NfcATag** object obtained.|
31
32## tag.getNfcBTag
33
34getNfcBTag(tagInfo: TagInfo): NfcBTag
35
36Obtains an **NfcBTag** object, which allows access to the tags that use the NFC-B technology.
37
38**Required permissions**: ohos.permission.NFC_TAG
39
40**System capability**: SystemCapability.Communication.NFC
41
42**Return value**
43
44| **Type**| **Description**        |
45| -------- | ---------------- |
46| NfcBTag  | **NfcBTag** object obtained.|
47
48## tag.getNfcFTag
49
50getNfcFTag(tagInfo: TagInfo): NfcFTag
51
52Obtains an **NfcFTag** object, which allows access to the tags that use the NFC-F technology.
53
54**Required permissions**: ohos.permission.NFC_TAG
55
56**System capability**: SystemCapability.Communication.NFC
57
58**Return value**
59
60| **Type**| **Description**        |
61| -------- | ---------------- |
62| NfcFTag  | **NfcFTag** object obtained.|
63
64## tag.getNfcVTag
65
66getNfcVTag(tagInfo: TagInfo): NfcVTag
67
68Obtains an **NfcVTag** object, which allows access to the tags that use the NFC-V technology.
69
70**Required permissions**: ohos.permission.NFC_TAG
71
72**System capability**: SystemCapability.Communication.NFC
73
74**Return value**
75
76| **Type**| **Description**        |
77| -------- | ---------------- |
78| NfcVTag  | **NfcVTag** object obtained.|
79