ConsentPromptDialogModel
Types
Link copied to clipboard
class ConsentPromptRequest(val requester: Requester, val trustedRequesterIdentity: TrustedRequesterIdentity?, val presentmentData: PresentmentData, val preselectedDocuments: List<Document>, val onDocumentsInFocus: (documents: List<Document>) -> Unit, val transactionDataRendererRepository: TransactionDataRendererRepository?, val requesterHistory: RequesterHistory? = null, val classifyPurposesFn: ClassifyPurposesFn = ::defaultClassifyPurposes, val classifyRiskFn: ClassifyRiskFn = ::defaultClassifyRisk, val classifySimpleConsentFn: ClassifySimpleConsentFn = ::defaultClassifySimpleConsent, val platformConsentOptions: PlatformConsentOptions? = null)
Class that holds parameters that are needed to present a consent prompt dialog to the user.
Link copied to clipboard
Properties
Link copied to clipboard
val dialogState: SharedFlow<PromptDialogModel.DialogState<ConsentPromptDialogModel.ConsentPromptRequest, PresentmentSelection>>
The state of this dialog.
Link copied to clipboard
Dialog type that this model servers.
Functions
Link copied to clipboard
suspend fun displayPrompt(parameters: ConsentPromptDialogModel.ConsentPromptRequest, lingerDuration: Duration): PresentmentSelection
Request UI to display a prompt dialog and obtain a response from the user.
Link copied to clipboard
Waits until the model is bound to the UI.