read

suspend fun read(isoDep: IsoDep): ReadResult

Execute the read session on the given IsoDep tag.

This is a suspending function — call it from a coroutine. It runs on Dispatchers.IO internally and is safe to call from the main thread.

Return

ReadResult with all requested fields populated.

Parameters

isoDep

The IsoDep tag received from ro.eidkit.sdk.nfc.NfcManager.handleIntent. Do not call connect() before passing it — the SDK manages the connection lifecycle.

Throws

on any card or configuration error.