AndroidPromptModel

PromptModel for Android platform.

Types

Link copied to clipboard
class Builder(val uiLauncher: suspend (PromptDialogModel<*, *>) -> Unit = {}, val toHumanReadable: ConvertToHumanReadableFn = ::defaultConvertToHumanReadable) : PromptModel.Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val promptModelScope: CoroutineScope
Link copied to clipboard

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
Link copied to clipboard
open suspend override fun launchUi(dialogModel: PromptDialogModel<*, *>)

This method is called when there is no UI that is bound to a particular PromptDialogModel.

Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
Link copied to clipboard
suspend fun PromptModel.requestPassphrase(title: String, subtitle: String, passphraseConstraints: PassphraseConstraints, passphraseEvaluator: suspend (enteredPassphrase: String) -> PassphraseEvaluation?): String

Prompts user for authentication through a passphrase.

Link copied to clipboard
suspend fun AndroidPromptModel.showBiometricPrompt(cryptoObject: BiometricPrompt.CryptoObject?, title: String, subtitle: String, userAuthenticationTypes: Set<UserAuthenticationType>, requireConfirmation: Boolean): Boolean

Prompts user for authentication through biometrics.