Android.Nfc.Tech.MifareClassic.Transceive Method
Send raw NfcA data to a tag and receive the response.

Syntax

[Android.Runtime.Register("transceive", "([B)[B", "")]
public byte[] Transceive (byte[] p0)

See Also

NfcA.Transceive(Byte[])

Parameters

data
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOException

Remarks

Send raw NfcA data to a tag and receive the response.

This is equivalent to connecting to this tag via Android.Nfc.Tech.NfcA and calling NfcA.Transceive(Byte[]). Note that all MIFARE Classic tags are based on Android.Nfc.Tech.NfcA technology.

Use MifareClassic.MaxTransceiveLength to retrieve the maximum number of bytes that can be sent with MifareClassic.Transceive(Byte[]).

This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with Java.IO.IOException if MifareClassic.Close is called from another thread.

Requires the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#NFC permission.

[Android Documentation]

Requirements

Namespace: Android.Nfc.Tech
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 10