Presentment

fun Presentment(modifier: Modifier = Modifier, appName: String, appIconPainter: Painter, presentmentModel: PresentmentModel, presentmentSource: PresentmentSource, documentTypeRepository: DocumentTypeRepository, onPresentmentComplete: () -> Unit, onlyShowConsentPrompt: Boolean = false, showCancelAsBack: Boolean = false)

A composable used for credential presentment.

Applications should embed this composable wherever credential presentment is required. It communicates with the verifier using PresentmentMechanism and PresentmentModel and gets application-specific data sources and policy using PresentmentSource.

Parameters

modifier
appName

the name of the application.

appIconPainter

the icon for the application.

presentmentModel

the PresentmentModel to use which must have a PromptModel associated with it.

presentmentSource

an object for application to provide data and policy.

documentTypeRepository

a DocumentTypeRepository used to find metadata about documents being requested.

onPresentmentComplete

called when the presentment is complete.

onlyShowConsentPrompt

if true only the consent prompt will be shown, never any other graphics. This is useful if using a translucent activity.

showCancelAsBack

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