MdocNfcEngagementHelper

constructor(eDeviceKey: EcPublicKey, onHandoverComplete: (connectionMethods: List<MdocConnectionMethod>, encodedDeviceEngagement: ByteString, handover: DataItem) -> Unit, onError: (error: Throwable) -> Unit, staticHandoverMethods: List<MdocConnectionMethod>? = null, negotiatedHandoverPicker: (connectionMethods: List<MdocConnectionMethod>) -> MdocConnectionMethod? = null)

Parameters

eDeviceKey

EDeviceKey as per ISO/IEC 18013-5:2021.

onHandoverComplete

the function to call when handover is complete.

onError

the function to call if an error occurs.

staticHandoverMethods

list of connection methods to offer the mdoc reader, must contain at least one element, or null to not use NFC static handover.

negotiatedHandoverPicker

a function to choose one of the connection methods from the mdoc reader or null to not use NFC negotiated handover.