ObserverThread

Which thread a platform chip read calls its ChipReadObserver on. The same choice, with the same default, in the Android and the iPhone read settings (NfcReadSettings.observerOn and CoreNfcReadSettings.observerOn).

With either value the calls never overlap, come in order, and the one ending comes last, exactly once.

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

Entries

Link copied to clipboard

The platform's main thread (Android main looper, iPhone main queue), the thread a screen updates on. Every call is handed over in the order the SDK made it, so the order holds, and no call is made before start returned: even from the main thread, the first update comes after it. The default: nearly every app shows the updates on screen.

Link copied to clipboard

Whatever thread the SDK happens to be on: the read's own thread, or the thread that called start or cancel for the updates and the ending those cause. Not promised to be any particular thread; calls may come before start returns. For an observer that only records values and hands them on itself.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.