ConsentModalBottomSheet
fun ConsentModalBottomSheet(sheetState: SheetState, request: Request, documentName: String, documentDescription: String, documentCardArt: ImageBitmap?, trustPoint: TrustPoint?, appName: String? = null, appIconPainter: Painter? = null, onConfirm: () -> Unit = {}, onCancel: () -> Unit = {}, showCancelAsBack: Boolean = false)
A ModalBottomSheet used for obtaining the user's consent when presenting credentials.
Parameters
sheetState
a SheetState for state.
request
the request.
documentName
the name of the document.
documentDescription
a description of the document.
documentCardArt
cart art for the document or null
.
trustPoint
if the requester is in a trust-list, the TrustPoint indicating this
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 sheet is dismissed.
onCancel
called when the user presses the "Share" button.
showCancelAsBack
if true
, the cancel button will say "Back" instead of "Cancel".