ProvisioningBottomSheet
Bottom sheet that interacts with the user and drives credential provisioning in the given ProvisioningModel, only visible when model state is not ProvisioningModel.Idle.
If the bottom sheet is dismissed, the provisioning session is canceled.
When OpenId-style user authorization is launched, user interacts with the browser, at the end of this interaction, browser is navigated to a redirect URL that the app should intercept. Meanwhile waitForRedirectLinkInvocation is invoked (asynchronously), it should return the redirect URL once it was navigated to. Although an exotic possibility (and not supported using ProvisioningBottomSheet as UI), multiple authorization sessions can run in parallel (each with its own model). Each authorization session is assigned a unique state value (passed as url parameter on the redirect url). It is important that url with the correct state parameter value is returned by waitForRedirectLinkInvocation. This is important in all cases to avoid contaminating an active authorization session with stale URLs (e.g. from a browser tab)
Parameters
Compose Modifier for this UI control
model that manages credential provisioning
wait for redirect url with the given state parameter being navigated to in the browser.
called when the document is provisioned (or it fails provisioning)
if given, starts provisioning from the metadata exposed by the given issuer, credential offer is not needed in this case
preferences for OpenID4VCI protocol, must be given if issuerUrl is given
OpenID4VCI protocol support object, must be given if issuerUrl is given