MdocProximityQrPresentment
A composable for presentment with QR engagement according to ISO/IEC 18013-5:2021.
Some platforms might implement this using platform-specific mechanism, for example on Android it will use PresentmentActivity. This can be inhibited by passing true to disablePlatformSpecificImplementation.
Parameters
a Modifier.
the source of truth for what is being presented.
a PromptModel.
a composable to show an UI to start sharing, for example a button the user can press that says "Present mDL with QR code", if applicable. This should call generateQrCode when e.g. the user presses the button and pass a MdocProximityQrSettings which contains the settings for what kind of org.multipaz.mdoc.transport.MdocTransport instances to advertise and what options to use when creating the transports.
a composable which shows the QR code and asks the user to scan it.
a composable which will be shown when transacting with a remote reader.
a composable which will be shown when the transaction is complete. This should should feedback (either success or error, depending on the error parameter) and call the passed-in reset() lambda when ready to reset the state and go back and show a QR button.
a list of documents the user may have preselected or the empty list.
the curve to use for session encryption.
the MdocTransportFactory to use for creating transports.
set to true to not use platform-specific implementations.