ChipReadUpdate

One update of a chip read: its state, its progress, and which attempt it is.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Properties

Link copied to clipboard

Which attempt the update belongs to, from 1. A read starts again after a lost link only when its LinkLossPolicy allows it; each new start is a new attempt. A planned handover to a fresh connection on iPhone (CoreNfcReadSettings.tagTimeLimitMillis) is no new attempt. ChipReadState.LinkLost belongs to the attempt that lost the link, each time it is reported; every update after it belongs to the attempt that starts when the document is back. So attempt + 1 is the "try 2 of 3" to show with ChipReadState.LinkLost.

Link copied to clipboard

The most attempts this read can make: 1, plus the restarts the app allowed. Under LinkLossPolicy.Resume a restart after an attempt that read more bytes uses none of them, so this is at least attempt: it grows with the attempts when the read keeps making progress.

Link copied to clipboard

How far the read got.

Link copied to clipboard

Where the read is.

Functions

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

The state, the progress and the attempt; never document data.