addReadinessListener
Registers listener to hear when readiness changes kind, on the main thread: when the person switches NFC on or off (the platform's ACTION_ADAPTER_STATE_CHANGED broadcast), and when a read of this app starts or ends. Not called at registration: register, then ask readiness. A change of the option for reading tags has no broadcast: it shows at the next of these changes, and in readiness when asked.
The SDK registers one broadcast receiver, with the application context of context, while at least one listener is registered, and unregisters it with the last one; it keeps no Activity. From Android 13 (API level 33) on it is registered as not exported: the broadcast comes from the system, never from another app. From Android 14 the system may hold broadcasts back while the app is in the cached state and deliver them when it returns, so ask readiness again in onResume. The SDK holds the listener, and what it refers to, until ChipReadReadinessRegistration.remove: remove it when the screen goes away.
Return
The registration, to remove the listener.
Since
1.0.0
Parameters
Any context of the app; only its application context is kept.
Called with each new value.