ChipReadReadiness

Whether a new chip read started now is expected to be accepted at once: for an app that enables its "read the chip" button only when a read can begin. The same shape on both platforms: on iPhone, ask CoreNfcChipRead.readiness() and register a listener with CoreNfcChipRead.addReadinessListener; on Android, NfcChipRead.readiness(context) and NfcChipRead.addReadinessListener(context, listener). Android has no wait between reads, so it never reports NotYet; its listener also hears NFC switched on and off. iPhone has no signal for that, so there a radio switched off shows only when a read starts.

It is the SDK's own bookkeeping, stated as facts, not a promise from the system: a start is always allowed, and a start made while the value is NotYet waits in ChipReadState.Starting for the same time, so no read is lost by starting early.

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

Constructors for the platform modules.

Link copied to clipboard

No read is running, but a new one would wait in ChipReadState.Starting first. On iPhone: the system ended the last reader session on its own, or refused one as busy, and the SDK treats the system as ready the read setting waitAfterSystemEndMillis after it saw that end; or the last session the SDK ended was not yet reported closed by the system, for which it waits at most 5 seconds. Android never reports this value: it has no wait between reads.

Link copied to clipboard

A read is running in this app: a new start now ends at once with ChipReadEnding.NotStarted and NfcUnavailable.Reason.READ_IN_PROGRESS.

Link copied to clipboard
data object Ready : ChipReadReadiness

No read is running, and nothing the SDK knows of holds a new one back.

Link copied to clipboard

Chips cannot be read on this device, for reason, as the platform read's availability() reports it: on Android no NFC reader, NFC off, or its option for reading tags off; on iPhone only no NFC reader, the one thing Core NFC can tell before a read.