ndefTransact
suspend fun ndefTransact(ndefMessage: NdefMessage, wtInt: Int, nWait: Int, onMessageSent: suspend () -> Unit? = null): NdefMessage
Exchanges NDEF messages according to NFC Forum Tag NDEF Exchange Protocol section 5.
Return
the message which was read.
Parameters
ndefMessage
the message to write.
wtInt
Minimum waiting time as per NFC Forum Tag NDEF Exchange Protocol section 4.1.6.
nWait
Maximum number of waiting time extensions as per NFC Forum Tag NDEF Exchange Protocol section 4.1.7.
onMessageSent
Optional callback to make when the message has been sent.