{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class IntentMonitorRegistry
Exposes an implementation of IntentMonitor to users.
Public functions |
|
|---|---|
IntentMonitor |
Returns the IntentMonitor. |
Unit |
registerInstance(monitor: IntentMonitor)Stores the given |
fun getInstance(): IntentMonitor
Returns the IntentMonitor. This monitor is not guaranteed to be present under all' instrumentations.
| Throws | |
|---|---|
java.lang.IllegalStateException |
if no monitor has been registered. |
fun registerInstance(monitor: IntentMonitor): Unit
Stores the given IntentMonitor instance in the registry. Passing null removes the monitor from the registry.