IosPromptModel

PromptModel for iOS platform.

Types

Link copied to clipboard
class Builder(toHumanReadable: ConvertToHumanReadableFn = ::defaultConvertToHumanReadable) : PromptModel.Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val key: kotlin/coroutines/CoroutineContext.Key<org/multipaz/prompt/PromptModel>
Link copied to clipboard
val numPromptsShowing: kotlinx/coroutines/flow/StateFlow<kotlin/Int>

Number of prompts currently showing.

Link copied to clipboard
open override val promptModelScope: ERROR CLASS: Unresolved name: CoroutineScope
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun PromptModel.requestConsent(requester: Requester, trustMetadata: TrustMetadata?, credentialPresentmentData: CredentialPresentmentData, preselectedDocuments: List<Document>, onDocumentsInFocus: (documents: List<Document>) -> Unit): CredentialPresentmentSelection

Shows a consent prompt to the user for presentment of credentials.

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.