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