showConsentPrompt
A function to show a consent prompt.
An application will typically call org.multipaz.prompt.promptModelRequestConsent which will show a consent prompt to the user. The application may also be configured to exercise consent previously given by the user in which case it can call org.multipaz.prompt.promptModelSilentConsent.
In either case implementations MUST always call onSelectionChanged, even if no user interaction is happening.
Return
null if the user dismissed the prompt, otherwise a CredentialPresentmentSelection object conveying which credentials the user selected, if multiple options are available.
Parameters
the relying party which is requesting the data.
TrustMetadata conveying the level of trust in the requester, if any.
the combinations of credentials and claims that the user can select.
a list of documents the user may have preselected earlier (for example an OS-provided credential picker like Android's Credential Manager) or the empty list if the user didn't preselect.
called with the documents currently selected for the user, including when first shown. If the user selects a different set of documents in the prompt, this will be called again.
See also
which this method wraps.