ChipReadState

Where a chip read is.

A read goes through these states in order: Starting, WaitingForDocument, DocumentFound, Connecting, OpeningAccess, then ReadingFile and AuthenticatingChip in the order the chip needs, then CheckingFiles. NoAnswerYet can come after OpeningAccess while the chip has not answered yet. On iPhone, RenewingSession can come while no document was reported, followed by WaitingForDocument again. LinkLost and Stopping can come at any point after the read starts. Each state holds only identifiers and counts, never document data.

May gain members in a later release: an exhaustive when over it then stops compiling until the new member is handled. An else branch keeps it compiling without handling the new member: that is your choice, and today the compiler warns that such an else is redundant.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Inheritors

Types

Link copied to clipboard

The reader runs a check with the chip's own key: chip authentication or active authentication.

Link copied to clipboard

Every file is read; the SDK runs the passive-authentication checks on the phone. The chip is no longer needed.

Link copied to clipboard

The link to the document's chip is being set up.

Link copied to clipboard

A document is found, and the read has not sent it anything yet. The moment to say "found, hold still": the platform waits a short moment here before the first command, so the document can settle.

Link copied to clipboard

The link to the chip was lost before an answer: usually the document moved away. The moment to say "connection lost, hold the document again".

Link copied to clipboard

A document is found, but its chip has not answered the read's first commands: usually it is found but sits where it gets too little power to answer. The moment to say "found, move the document a little", not "hold it again": the document is still there.

Link copied to clipboard

The reader is opening the chip with the access key: it reads EF.CardAccess, then runs PACE or BAC.

Link copied to clipboard

The reader is reading a file. The update repeats for each part of the file the chip sends.

Link copied to clipboard

On iPhone only: no document was reported yet, and the read closes the system's NFC session and opens a new one, within the same read. The system sheet closes and opens again; the access key, the attempt and the restarts after a lost link stay as they were.

Link copied to clipboard
data object Starting : ChipReadState

The read is starting: the SDK checks that NFC can be used and, on some platforms, waits for the previous read to let go of the reader.

Link copied to clipboard
data object Stopping : ChipReadState

The app cancelled the read. The link is being released; the ending follows at once.

Link copied to clipboard

The reader is on and waits for a document. A good moment to ask the person to hold the document against the phone.