ChipReadEventSink
A telemetry sink for chip reads that hands you ChipReadEvent directly, with no cast from the general TelemetryEvent. It is a TelemetrySink, so it goes wherever one goes: the telemetry of the Android and iPhone read settings, ChipReader, TelemetrySinkRegistry.
val settings = NfcReadSettings(telemetry = ChipReadEventSink { event -> log(event.step, event.outcome) })Content copied to clipboard
Events of other kinds, which a registered sink may also receive, are not passed on. Like every sink, it can be called from any thread and must be thread-safe; an exception it throws is ignored. The general TelemetrySink stays for apps that count every kind of event.
Experimental: see ExperimentalTesseraChipApi.
Since
1.0.0
Functions
Link copied to clipboard
Handles one step event of a chip read.
Link copied to clipboard
Passes event to onEvent when it is a ChipReadEvent; drops any other kind.