ChipReadResult
The outcome of ChipReader.read.
Complete: every step ran. Some requested files may still be missing or unreadable; they are listed in ChipRead.fileErrors.
Partial: access was granted, then the read stopped part way, for example because the document left the reader's field or the session ended after a chip-authentication key switch. What was read before is kept, and the checks are run over it.
Failed: access was not granted (for example the access key does not match), or the chip is blank (io.lightine.tessera.types.errors.ChipBlank). Nothing was read from the eMRTD application.
None of them is a judgment on the document: a chip that cannot be read, or that is blank, does not by itself make a document unusable (ICAO Doc 9303 Part 11, section 2).
In Swift these are the classes ChipReadResultComplete, ChipReadResultPartial and ChipReadResultFailed; none is generic.
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
Every step ran; read holds what the chip gave.