ShowConsentPromptFn
typealias ShowConsentPromptFn = suspend (requester: Requester, trustMetadata: TrustMetadata?, credentialPresentmentData: CredentialPresentmentData, preselectedDocuments: List<Document>, onDocumentsInFocus: (documents: List<Document>) -> Unit) -> CredentialPresentmentSelection?
A function that can be used to obtain consent and selection of credentials by the user.
The functions promptModelRequestConsent and promptModelSilentConsent are expected to cover most needs but this type alias exists so applications can override this with their own implementations.
If no consent is given or the user dismissed the dialog, null is returned.
Note that implementations MUST always call onDocumentsInFocus, even if no user interaction is happening.