Failed

No access was granted in any attempt, or the chip is blank, or the read could not go on for a reason that is not about the key. On Android this is also the ending when the app's own wait for a document (NfcReadSettings.waitForDocumentMillis) passed with none found: error is a io.lightine.tessera.types.errors.NfcTimeout with limit WAIT_FOR_DOCUMENT and attempts is 0. The app set that limit, so it is not EndedBySystem.

Since

1.0.0

Properties

Link copied to clipboard

How far access got: null when no access protocol completed.

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

Why.

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
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

Failed( the error ).