MdocNfcCceEngagementHelper
constructor(eDeviceKey: EcPublicKey, onHandoverComplete: (connectionMethod: MdocConnectionMethod?, encodedDeviceEngagement: ByteString, handover: DataItem, eReaderKey: EcPublicKey) -> Unit, onMessageReceived: suspend (ByteString) -> Unit, onError: (error: Exception) -> Unit, handoverPicker: suspend (connectionMethods: List<MdocConnectionMethod>) -> MdocConnectionMethod?? = null, capabilities: Map<Capability, DataItem> = mapOf(
Capability.READER_AUTH_ALL_SUPPORT to true.toDataItem(),
Capability.EXTENDED_REQUEST_SUPPORT to true.toDataItem()
), apduCommandMaxSize: Long = 65535, apduResponseMaxSize: Long = 65536)
Parameters
eDeviceKey
EDeviceKey as per ISO/IEC 18013-5.
onHandoverComplete
the function to call when handover is complete. connectionMethod is the selected secondary channel MdocConnectionMethod, or null if no secondary channel was selected (NFC-only).
onMessageReceived
the function to call when a data message has been received over NFC.
onError
the function to call if an error occurs.
handoverPicker
a function to choose one of the secondary connection methods offered by the mdoc reader, or return null to use NFC only without a secondary channel.
apduCommandMaxSize
the maximum length of the command data field (1..65535).
apduResponseMaxSize
the maximum length of the response data field (1..65536).