NfcDialogParameters

class NfcDialogParameters<out T>(val initialMessage: String?, val interactionFunction: suspend (tag: NfcIsoTag) -> T?, val options: NfcScanOptions, val context: CoroutineContext)

Parameters needed for UI to display and run NFC dialog. See org.multipaz.nfc.NfcTagReader.scan for more information.

Parameters

initialMessage

the message to initially show in the dialog or null to not show a dialog at all.

interactionFunction

the function which is called when the tag is in the field.

options

a NfcScanOptions with options to influence scanning.

context

the CoroutineContext to use for calls which blocks the calling thread.

Constructors

Link copied to clipboard
constructor(initialMessage: String?, interactionFunction: suspend (tag: NfcIsoTag) -> T?, options: NfcScanOptions, context: CoroutineContext)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val interactionFunction: suspend (tag: NfcIsoTag) -> T?
Link copied to clipboard