digitalCredentialsPresentment
Present credentials according to the W3C Digital Credentials API.
Note: this variant with String instead of JsonObject only exists for interoperability with Swift.
Return
a string with JSON with the result, this is a JSON object containing the protocol and data fields in DigitalCredential interface.
Parameters
the protocol field in the DigitalCredentialGetRequest dictionary.
a string with JSON from the data field in the DigitalCredentialGetRequest dictionary.
the id of the application making the request, if available, for example com.example.app on Android or <teamId>.<bundleId> on iOS.
the origin of the requester.
the 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.
the source of truth used for presentment.
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.
Throws
if the user dismissed a prompt.
if coroutineContext does not have PromptModel.
if the UI layer hasn't bound any UI for PromptModel.
if the user canceled in a consent prompt.
if it's not possible to satisfy the request.
Present credentials according to the W3C Digital Credentials API.
Return
JSON with the result, this is a JSON object containing the protocol and data fields in DigitalCredential interface.
Parameters
the protocol field in the DigitalCredentialGetRequest dictionary.
the data field in the DigitalCredentialGetRequest dictionary.
the id of the application making the request, if available, for example com.example.app on Android or <teamId>.<bundleId> on iOS.
the origin of the requester.
the 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.
the source of truth used for presentment.
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.
Throws
if the user dismissed a prompt.
if coroutineContext does not have PromptModel.
if the UI layer hasn't bound any UI for PromptModel.
if the user canceled in a consent prompt.
if it's not possible to satisfy the request.