NfcTagReader

interface NfcTagReader

An interface for reading NFC tags.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether a system dialog is always shown when scanning.

Link copied to clipboard
abstract val external: Boolean

Whether the reader is external.

Functions

Link copied to clipboard
abstract suspend fun <T : Any> scan(message: String?, tagInteractionFunc: suspend (tag: NfcIsoTag) -> T?, options: NfcScanOptions = NfcScanOptions(), context: CoroutineContext = Dispatchers.IO): T

Scans a NFC tag.

Link copied to clipboard
suspend fun NfcTagReader.scanMdocReader(message: String?, options: MdocTransportOptions, transportFactory: MdocTransportFactory = MdocTransportFactory.Default, selectConnectionMethod: suspend (connectionMethods: List<MdocConnectionMethod>) -> MdocConnectionMethod?, negotiatedHandoverConnectionMethods: List<MdocConnectionMethod>, nfcScanOptions: NfcScanOptions = NfcScanOptions(), context: CoroutineContext = Dispatchers.IO): ScanMdocReaderResult?

Performs NFC engagement as a mdoc reader.