NfcHybridTransportMdoc
class NfcHybridTransportMdoc(sendMessageViaNfc: suspend (message: ByteString) -> Boolean) : MdocTransport
Hybrid transport for using NFCv2.
Parameters
sendMessageViaNfc
a function to send a message via NFC, returns false if the NFC connection is no longer up. be on NFC
Properties
Link copied to clipboard
A MdocConnectionMethod which can be sent to the other peer to connect to.
Link copied to clipboard
The time spent scanning for the other peer.
Link copied to clipboard
The current state of the transport.
Link copied to clipboard
Statistics about the NfcHybridTransportMdoc.
Functions
Link copied to clipboard
Called when a message has been received via NFC.
Link copied to clipboard
Called when a deactivation event on NFC has occurred.
Link copied to clipboard
Opens the connection to the other peer.
Link copied to clipboard
Sends a message to the other peer.
Link copied to clipboard
Sets whether a setTransport is expected to be called.
Link copied to clipboard
Called when the negotiated transport is connected.
Link copied to clipboard
Waits for the other peer to send a message.