Settings

data class Settings(val source: PresentmentSource, val promptModel: PromptModel, val presentmentModel: PresentmentModel?, val launchUi: () -> Unit? = null, val sessionEncryptionCurve: EcCurve, val onlyAllowNfc: Boolean, val handoverPreferredOrder: List<String> = emptyList(), val bleDirectL2capEnabled: Boolean = false, val transportOptions: MdocTransportOptions, val transportFactory: MdocTransportFactory = MdocTransportFactory.Default, val capabilities: Map<Capability, DataItem> = mapOf( Capability.READER_AUTH_ALL_SUPPORT to true.toDataItem(), Capability.EXTENDED_REQUEST_SUPPORT to true.toDataItem() ))

Settings provided by the application for how to configure NFC Concurrent Channel Engagement (CCE).

Constructors

Link copied to clipboard
constructor(source: PresentmentSource, promptModel: PromptModel, presentmentModel: PresentmentModel?, launchUi: () -> Unit? = null, sessionEncryptionCurve: EcCurve, onlyAllowNfc: Boolean, handoverPreferredOrder: List<String> = emptyList(), bleDirectL2capEnabled: Boolean = false, transportOptions: MdocTransportOptions, transportFactory: MdocTransportFactory = MdocTransportFactory.Default, capabilities: Map<Capability, DataItem> = mapOf( Capability.READER_AUTH_ALL_SUPPORT to true.toDataItem(), Capability.EXTENDED_REQUEST_SUPPORT to true.toDataItem() ))

Properties

Link copied to clipboard

true if ISO/IEC 18013-5 Second Edition direct BLE L2CAP modes (MdocConnectionMethod.Ble.DirectL2capPeripheral and MdocConnectionMethod.Ble.DirectL2capCentral) should be accepted during CCE handover.

Link copied to clipboard

the capabilities to convey to the mdoc reader.

Link copied to clipboard

a list of the preferred order for which kind of secondary MdocConnectionMethod to select during handover when onlyAllowNfc is false.

Link copied to clipboard
val launchUi: () -> Unit?

a callback invoked when handover completes to launch the presentment UI, or null.

Link copied to clipboard

if true, only NFC data transfer (without a secondary channel) will be used, otherwise the secondary connection method is chosen according to handoverPreferredOrder.

Link copied to clipboard

the PresentmentModel to update during presentment, or null.

Link copied to clipboard
Link copied to clipboard

the Elliptic Curve Cryptography curve to use for session encryption.

Link copied to clipboard

the PresentmentSource to use as the source of truth for what to present.

Link copied to clipboard

the MdocTransportFactory to use for creating transports.

Link copied to clipboard

the MdocTransportOptions to use for newly created connections.