diff --git a/api/@ohos.nfc.cardEmulation.d.ts b/api/@ohos.nfc.cardEmulation.d.ts index f8150938b98506faa8503687f274062165ac9203..b9ec0cc12a841340f33ac8eb17b78b42e03f7a9e 100644 --- a/api/@ohos.nfc.cardEmulation.d.ts +++ b/api/@ohos.nfc.cardEmulation.d.ts @@ -19,7 +19,7 @@ import { ElementName } from './bundle/elementName'; * Provides methods to operate or manage NFC card emulation. * * @since 6 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.CardEmulation */ declare namespace cardEmulation { enum FeatureType { @@ -80,7 +80,7 @@ declare namespace cardEmulation { * installation information and connect to services of the application. * * @since 8 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.CardEmulation */ export class HceService { /** diff --git a/api/@ohos.nfc.tag.d.ts b/api/@ohos.nfc.tag.d.ts index 9ed3b6ce605a856146272629c0786e7ad72d2c04..8e10d116de6bb77fceffb69b4d06f0c97ebca4fc 100644 --- a/api/@ohos.nfc.tag.d.ts +++ b/api/@ohos.nfc.tag.d.ts @@ -33,7 +33,7 @@ import Want from './@ohos.application.Want'; * Provides methods to operate or manage NFC tag. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ declare namespace tag { /** Indicates an NFC-A tag. */ @@ -71,7 +71,7 @@ declare namespace tag { * TNF types definitions, see NFCForum-TS-NDEF_1.0. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ enum TnfType { /** Empty */ @@ -100,7 +100,7 @@ declare namespace tag { * NfcForum Type definition. The NDEF tag may use one of them. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ enum NfcForumType { /** NFC FORUM TYPE 1 */ @@ -137,7 +137,7 @@ declare namespace tag { * MifareClassic Type definition * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ enum MifareClassicType { /** Mifare Type unknown */ @@ -157,7 +157,7 @@ declare namespace tag { * MifareClassic Tag size. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ enum MifareClassicSize { /** 5 sectors per tag, 4 blocks per sector */ @@ -177,7 +177,7 @@ declare namespace tag { * MifareUltralight Type definition * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ enum MifareUltralightType { /** Mifare Type unknown */ @@ -252,7 +252,7 @@ declare namespace tag { * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3100201 - Tag running state is abnormal in service. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function getIsoDep(tagInfo: TagInfo): IsoDepTag @@ -267,7 +267,7 @@ declare namespace tag { * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3100201 - Tag running state is abnormal in service. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function getNdef(tagInfo: TagInfo): NdefTag @@ -282,7 +282,7 @@ declare namespace tag { * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3100201 - Tag running state is abnormal in service. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function getMifareClassic(tagInfo: TagInfo): MifareClassicTag @@ -297,7 +297,7 @@ declare namespace tag { * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3100201 - Tag running state is abnormal in service. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function getMifareUltralight(tagInfo: TagInfo): MifareUltralightTag @@ -312,7 +312,7 @@ declare namespace tag { * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3100201 - Tag running state is abnormal in service. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function getNdefFormatable(tagInfo: TagInfo): NdefFormatableTag @@ -323,7 +323,7 @@ declare namespace tag { * @param { Want } want - The want object that contains the values of TagInfo. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function getTagInfo(want: Want): TagInfo @@ -335,7 +335,7 @@ declare namespace tag { * different tags based on the supported technology. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @permission ohos.permission.NFC_TAG */ export interface TagInfo { @@ -391,7 +391,7 @@ declare namespace tag { * NDEF records definition, see NFCForum-TS-NDEF_1.0. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NdefRecord { /** tnf of NdefRecord */ @@ -414,7 +414,7 @@ declare namespace tag { * @param { string } uri - Uri data for new NDEF record. * @returns { NdefRecord } The instance of NdefRecord. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function makeUriRecord(uri: string): NdefRecord; @@ -426,7 +426,7 @@ declare namespace tag { * @param { string } locale - Language code for the NDEF record. if locale is null, use default locale. * @returns { NdefRecord } The instance of NdefRecord. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function makeTextRecord(text: string, locale: string): NdefRecord; @@ -438,7 +438,7 @@ declare namespace tag { * @param { string } mimeData mime data for new an NDEF record. * @returns { NdefRecord } The instance of NdefRecord. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function makeMimeRecord(mimeType: string, mimeData: number[]): NdefRecord; @@ -451,7 +451,7 @@ declare namespace tag { * @param { number[] } externalData - Data payload of an NDEF record. * @returns { NdefRecord } The instance of NdefRecord. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function makeExternalRecord(domainName: string, type: string, externalData: number[]): NdefRecord; @@ -461,7 +461,7 @@ declare namespace tag { * @param { number[] } data - The raw bytes to parse NDEF message. * @returns { NdefMessage } The instance of NdefMessage. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function createNdefMessage(data: number[]): NdefMessage; @@ -472,7 +472,7 @@ declare namespace tag { * @param { NdefRecord[] } ndefRecords - The NDEF records to parse NDEF message. * @returns { NdefMessage } The instance of NdefMessage. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function createNdefMessage(ndefRecords: NdefRecord[]): NdefMessage; @@ -483,7 +483,7 @@ declare namespace tag { * @param { NdefMessage } ndefMessage - An NDEF message to parse. * @returns { number[] } Returns the raw bytes of an NDEF message. * @throws { BusinessError } 401 - The parameter check failed. - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ function messageToBytes(ndefMessage: NdefMessage): number[]; diff --git a/api/tag/nfctech.d.ts b/api/tag/nfctech.d.ts index 97662b463a8d424a54fdbc39dd5f5ce78c409719..c581809acbac1133012945208602d43832051ed9 100644 --- a/api/tag/nfctech.d.ts +++ b/api/tag/nfctech.d.ts @@ -23,7 +23,7 @@ import { AsyncCallback, Callback } from '../basic'; * {@code NfcATag} objects and obtain the ATQA and SAK. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NfcATag extends TagSession { /** @@ -54,7 +54,7 @@ export interface NfcATag extends TagSession { * {@code NfcBTag} and obtain the tag information. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NfcBTag extends TagSession { /** @@ -85,7 +85,7 @@ export interface NfcBTag extends TagSession { * {@code NfcFTag} and obtain the tag information. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NfcFTag extends TagSession { /** @@ -116,7 +116,7 @@ export interface NfcFTag extends TagSession { * {@code NfcVTag} and obtain the tag information. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NfcVTag extends TagSession { /** @@ -144,7 +144,7 @@ export interface NfcVTag extends TagSession { * Provides methods for accessing IsoDep tag. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface IsoDepTag extends TagSession { /** @@ -184,6 +184,7 @@ export interface NdefMessage { * Obtains all records of an NDEF message. * * @returns { tag.NdefRecord[] } Records the list of NDEF records. + * @syscap SystemCapability.Communication.NFC.Tag * @since 9 */ getNdefRecords(): tag.NdefRecord[]; @@ -193,7 +194,7 @@ export interface NdefMessage { * Provides methods for accessing NDEF tag. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NdefTag extends TagSession { /** @@ -284,7 +285,7 @@ export interface NdefTag extends TagSession { * Provides methods for accessing MifareClassic tag. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface MifareClassicTag extends TagSession { /** @@ -451,7 +452,7 @@ export interface MifareClassicTag extends TagSession { * Provides methods for accessing MifareUltralight tag. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface MifareUltralightTag extends TagSession { /** @@ -495,7 +496,7 @@ export interface MifareUltralightTag extends TagSession { * Provides methods for accessing NdefFormatable tag. * * @since 9 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface NdefFormatableTag extends TagSession { /** diff --git a/api/tag/tagSession.d.ts b/api/tag/tagSession.d.ts index ea181120c5a26f622d614b3acc0e3dfebcec1256..c8fde1d14ef0fdd80d6b1c7c8691d976951f28e6 100644 --- a/api/tag/tagSession.d.ts +++ b/api/tag/tagSession.d.ts @@ -22,7 +22,7 @@ import { AsyncCallback } from '../basic'; * tags, read data from tags, and write data to tags. * * @since 7 - * @syscap SystemCapability.Communication.NFC.Core + * @syscap SystemCapability.Communication.NFC.Tag */ export interface TagSession { /**