Package-level declarations
Types
Link copied to clipboard
An abstraction of a ISO/IEC 18013-5:2021 device retrieval method.
Link copied to clipboard
Thrown by MdocTransport.waitForMessage if the transport was closed by another coroutine while waiting.
Link copied to clipboard
Thrown if an unrecoverable error occurs.
Link copied to clipboard
interface MdocTransportFactory
An interface used to create MdocTransport instances.
Link copied to clipboard
Options for using a MdocTransport.
Link copied to clipboard
Thrown if transport-specific termination was requested but not supported by the underlying tranposrt.
Link copied to clipboard
class NfcTransportMdoc(val role: MdocRole, options: MdocTransportOptions, val connectionMethod: MdocConnectionMethod) : MdocTransport
Link copied to clipboard
class NfcTransportMdocReader(val role: MdocRole, options: MdocTransportOptions, val connectionMethod: MdocConnectionMethodNfc) : MdocTransport
Functions
Link copied to clipboard
suspend fun List<MdocConnectionMethod>.advertise(role: MdocRole, transportFactory: MdocTransportFactory, options: MdocTransportOptions): List<MdocTransport>
A helper for advertising a number of connections to a remote peer.
Link copied to clipboard
actual fun defaultMdocTransportFactoryCreateTransport(connectionMethod: MdocConnectionMethod, role: MdocRole, options: MdocTransportOptions): MdocTransport
Link copied to clipboard
suspend fun List<MdocTransport>.waitForConnection(eSenderKey: EcPublicKey, coroutineScope: CoroutineScope = CoroutineScope(Dispatchers.IO)): MdocTransport
A helper for waiting until someone connects to a transport.