ScanNfcPromptDialogModel
class ScanNfcPromptDialogModel : PromptDialogModel<ScanNfcPromptDialogModel.NfcDialogParameters<Any>, Any?>
Gives user feedback while NFC scanning is performed.
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
val dialogState: SharedFlow<PromptDialogModel.DialogState<ScanNfcPromptDialogModel.NfcDialogParameters<Any>, Any?>>
The state of this dialog.
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.