Companion

Creates a coordinator: ChipReadCoordinator(options, linkLoss, observer). Kotlin only: on the JVM this and every member are synthetic, so Java code cannot call them (the opt-in marker does not reach Java), and Objective-C and Swift do not see the class.

Properties

The default time limit for one command before access, on both platforms: 1500 milliseconds. These commands, before the key is used (selecting and reading EF.CardAccess, selecting the application, BAC's GET CHALLENGE or PACE's MSE:Set AT), need no public-key work on the chip and normally answer in milliseconds.

Link copied to clipboard

The default time limit for one ordinary command after access (ChipCommandTimeLimit.READ), on both platforms: 2000 milliseconds. These commands (selecting a file, reading up to 256 bytes of it, under secure messaging or not) need no public-key work on the chip: on a device a 223-byte protected read took 45 to 65 milliseconds. ISO/IEC 14443-4 lets a chip take up to about 4.95 seconds for one frame, so a legal chip can be slower than this; none seen so far was for these commands.

Link copied to clipboard

The default settle time after a document is found, before the first command, on both platforms.

Link copied to clipboard
const val MAX_CONNECT_ATTEMPTS: Int = 3

Failed connects in a row (a lost link, no answer, before any command) after which a platform ends the read.

Link copied to clipboard
const val NO_TIME_LIMIT: Long

The value of totalTimeLimitMillis that means no limit.

Link copied to clipboard

How often a platform reports ChipReadState.WaitingForDocument again: every 2 seconds, on both platforms.

Functions

Link copied to clipboard
operator fun invoke(options: ChipReadOptions, linkLoss: LinkLossPolicy, observer: ChipReadObserver, reader: ChipReader = ChipReader(), clearKeyAtEnding: Boolean = false, totalTimeLimitMillis: Long = NO_TIME_LIMIT, now: () -> Long = monotonicMillis()): ChipReadCoordinator

See the class parameters.