NfcDialogParameters

class NfcDialogParameters<out T>(val initialMessage: String?, val interactionFunction: suspend (tag: NfcIsoTag, updateMessage: (message: String) -> Unit) -> T?)

Parameters needed for UI to display and run NFC dialog. See org.multipaz.nfc.scanNfcTag 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.

Constructors

Link copied to clipboard
constructor(initialMessage: String?, interactionFunction: suspend (tag: NfcIsoTag, updateMessage: (message: String) -> Unit) -> T?)

Properties

Link copied to clipboard
Link copied to clipboard
val interactionFunction: suspend (tag: NfcIsoTag, updateMessage: (message: String) -> Unit) -> T?