ScanNfcPromptDialogModel

Gives user feedback while NFC scanning is performed.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard
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.

Properties

Link copied to clipboard

True if this model is bound to the UI.

Link copied to clipboard
Link copied to clipboard

Dialog type that this model servers.

Functions

Link copied to clipboard
suspend fun displayPrompt(parameters: ScanNfcPromptDialogModel.NfcDialogParameters<Any>, lingerDuration: Duration = 0.seconds): Any?

Request UI to display a prompt dialog and obtain a response from the user.