startCardDetection

actual fun startCardDetection(onCardDetected: () -> Unit)
expect fun startCardDetection(onCardDetected: () -> Unit)

Starts monitoring the reader for card detection events asynchronously.

When a card is detected in the reader, the provided onCardDetected callback is invoked. This function does not block the calling thread and is suitable for use in event-driven or UI-based applications.

Since

1.0.0

Parameters

onCardDetected

The callback function to invoke when a card is detected.

Throws

ReaderIOException

If an I/O error occurs while communicating with the reader.

actual fun startCardDetection(onCardDetected: () -> Unit)
actual fun startCardDetection(onCardDetected: () -> Unit)