stop

suspend fun stop()

Stops the NCI controller, unregisters from NfcTagReader and NfcApduRouter, and closes the underlying NciPacketIo.

Throws

IOException

if deactivating the controller fails unexpectedly.

CancellationException

if the coroutine is cancelled.