CredentialPresentmentModalBottomSheet

fun CredentialPresentmentModalBottomSheet(sheetState: SheetState, requester: Requester, trustPoint: TrustPoint?, credentialPresentmentData: CredentialPresentmentData, preselectedDocuments: List<Document>, imageLoader: ImageLoader, dynamicMetadataResolver: (requester: Requester) -> TrustMetadata? = { chain -> null }, appName: String? = null, appIconPainter: Painter? = null, onConfirm: (selection: CredentialPresentmentSelection) -> Unit, onCancel: () -> Unit = {}, showCancelAsBack: Boolean = false)

Bottom sheet used for obtaining consent when presenting one or more credentials.

Parameters

sheetState

a SheetState for state.

requester

the relying party which is requesting the data.

trustPoint

if the requester is in a trust-list, the TrustPoint indicating this

credentialPresentmentData

the combinatinos of credentials and claims that the user can select.

preselectedDocuments

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.

imageLoader

a ImageLoader.

dynamicMetadataResolver

a function which can be used to calculate TrustMetadata on a per-request basis.

appName

the name of the application or null to not show the name.

appIconPainter

the icon for the application or `null to not show the icon.

onConfirm

called when the user presses the "Share" button, returns the user's selection.

onCancel

called when the sheet is dismissed.

showCancelAsBack

if true, the cancel button will say "Back" instead of "Cancel".