Package-level declarations

Types

Link copied to clipboard
class MdocNfcEngagementHelper(val eDeviceKey: EcPublicKey, val onHandoverComplete: (connectionMethods: List<MdocConnectionMethod>, encodedDeviceEngagement: ByteString, handover: DataItem) -> Unit, val onError: (error: Throwable) -> Unit, val staticHandoverMethods: List<MdocConnectionMethod>? = null, val negotiatedHandoverPicker: (connectionMethods: List<MdocConnectionMethod>) -> MdocConnectionMethod? = null)

Helper used for NFC engagement on the mdoc side.

Link copied to clipboard
data class MdocReaderNfcHandoverResult(val connectionMethods: List<MdocConnectionMethod>, val encodedDeviceEngagement: ByteString, val handover: DataItem)

The result of a successful NFC handover operation

Functions

Link copied to clipboard
suspend fun mdocReaderNfcHandover(tag: NfcIsoTag, negotiatedHandoverConnectionMethods: List<MdocConnectionMethod>): MdocReaderNfcHandoverResult?

Perform NFC Engagement as a mdoc reader.

Link copied to clipboard
suspend fun scanNfcMdocReader(message: String?, options: MdocTransportOptions, transportFactory: MdocTransportFactory = MdocTransportFactory.Default, selectConnectionMethod: suspend (connectionMethods: List<MdocConnectionMethod>) -> MdocConnectionMethod?, negotiatedHandoverConnectionMethods: List<MdocConnectionMethod>, onHandover: suspend (transport: MdocTransport, encodedDeviceEngagement: ByteString, handover: DataItem, updateMessage: (message: String) -> Unit?) -> Unit): Boolean

Performs NFC engagement as a reader.