Local Reader
Local NFC reader abstraction. We provide a Kotlin Multiplatform implementation compatible with iOS, Android and JVM-based desktops using a PCSC reader (Windows, macOS, linux). You can provide your own version or support different hardware by implementing this interface.
Since
1.0.0
Functions
Closes safely the current physical channel.
Returns the power-on data. The power-on data is defined as the data retrieved by the reader when the card is detected.
Attempts to open the physical channel with the card.
Used to set the scan instructions to the user, for applicable NFC readers. Main usage is for iOS: the provided message is displayed in the iOS system-driven NFC popup
Starts monitoring the reader for card detection events asynchronously.
Transmits an Application Protocol Data Unit (APDU) command to the smart card and receives the response.
Suspends until a card is detected.