MifareUltralight.TransceiveAsync(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends raw NFC-A data to the tag and receives its response on a thread-pool thread.
public System.Threading.Tasks.Task<byte[]?> TransceiveAsync(byte[]? data);
member this.TransceiveAsync : byte[] -> System.Threading.Tasks.Task<byte[]>
Parameters
- data
- Byte[]
The complete NFC-A command bytes to send, without the CRC. The length must not exceed MaxTransceiveLength.
Returns
A task whose result contains the response bytes.
Remarks
This managed wrapper uses Task.Run to call Transceive(Byte[]). Connect first and await the task before starting another operation. Android calculates the CRC.
The method has no cancellation-token parameter. Calling Close() from another thread cancels blocked I/O with IOException. Exceptions from the synchronous call are reported through the task. The NFC permission is required.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.