cancel

open override fun cancel()

Ends the read with ChipReadEnding.Cancelled (by the app), whatever it is doing; it changes nothing once the read has ended. This is the way to stop a read: switching reader mode off behind the SDK's back (NfcAdapter.disableReaderMode, or your own reader mode on the same Activity) cannot be seen by the SDK, so the read goes on waiting for a document that can no longer arrive, until NfcReadSettings.waitForDocumentMillis passes (2 minutes by default), or the Activity of an Activity-owning read is destroyed. In the callback form, also call NfcReaderMode.disable afterwards.