Partial

Access was granted, then the read stopped before every step ran.

After lost links the read is the one from the latest attempt that was granted access.

Since

1.0.0

Properties

Link copied to clipboard
open override val attempts: Int

How many attempts sent commands to a chip: 0 when none did, more than 1 after a lost link. A read that ends while it waits for the document after a lost link counts only the attempts that ran, so this can be one less than the ChipReadUpdate.attempt of the last updates, which already name the attempt the read was getting ready for.

Link copied to clipboard
open override val progress: ChipReadProgress

The progress when the read ended: 1.0 only for Complete; the last value otherwise.

Link copied to clipboard

What was read and checked before the stop.

Link copied to clipboard

Why it stopped.

Link copied to clipboard

The state the read was in when it stopped (the file and its byte counts, never content), or null when unknown.

Link copied to clipboard
open override val systemCode: Int?

The platform's own code for the failure that ended the read, as the platform reported it, when it gave one: on iPhone, Core NFC's NFCReaderError code of the session's end or of the failed connect that led to this ending (for example 2, 7 or 8 for NotStarted with NOT_PERMITTED, NOT_ELIGIBLE or ACCESS_NOT_ANSWERED). null when the ending did not come from a code of the platform, and always on Android, whose NFC calls report no codes. A fact for diagnosis: the typed reason is what the app acts on.

Functions

Link copied to clipboard
open override fun toString(): String

Partial(...) with counts, the error and the state.