AsReaderNFCDeviceDelegate

⚠️ Note:
These delegate methods are called back only when the AsReader device is properly connected and the corresponding methods have been called.
No callbacks occur if the model is unsupported or not connected.


nfcReadMultiBlockReceived

Receives data and status from an NFC tag.
Called back with the result after executing readMultiBlockWithBlockIndex.

- (void)nfcReadMultiBlockReceived:(NSArray *)dataArray statusCode:(SDK4StatusCode)statusCode;

Parameters

Name

Type

Description

dataArray

NSArray

Data read from the NFC tag

statusCode

SDK4StatusCode

Status data of the NFC operation (see SDK4StatusCode).
If the return value is not SDK4_STS_OK, dataArray will be null.

Return Value

Type

Description

void

None (callback method)

Sample Code

- (void)nfcReadMultiBlockReceived:(NSArray *)dataArray statusCode:(SDK4StatusCode)statusCode{
    // dataArray: Data read from the NFC tag
    // statusCode: Status data of the NFC operation (see section 6.1 SDK4StatusCode for details).
}

nfcWriteSingleBlockStatusCode

Receives the status of writing to an NFC tag.
Called back with the result after executing writeSingleBlockWithBlockIndex.

- (void)nfcWriteSingleBlockStatusCode:(SDK4StatusCode)statusCode;

Parameters

Name

Type

Description

statusCode

SDK4StatusCode

Status data of the NFC operation (see SDK4StatusCode)

Return Value

Type

Description

void

None (callback method)

Sample Code

- (void)nfcWriteSingleBlockStatusCode:(SDK4StatusCode)statusCode{
    // statusCode: Status data of the NFC operation (see section 6.1 SDK4StatusCode for details).
}

nfcWriteBytesStatusCode

Receives the status of writing bytes to an NFC tag.
Called back with the result after executing writeBytesWithBlockIndex.

- (void)nfcWriteBytesStatusCode:(SDK4StatusCode)statusCode;

Parameters

Name

Type

Description

statusCode

SDK4StatusCode

Status data of the NFC operation (see SDK4StatusCode)

Return Value

Type

Description

void

None (callback method)

Sample Code

- (void)nfcWriteBytesStatusCode:(SDK4StatusCode)statusCode{
    // statusCode: Status data of the NFC operation (see section 6.1 SDK4StatusCode for details).
}