IntentMonitorRegistry
Artifact: androidx.test:monitor
class IntentMonitorRegistry
Exposes an implementation of IntentMonitor to users.
Summary
Public functions |
|
|---|---|
java-static IntentMonitor! |
Returns the IntentMonitor. |
java-static Unit |
registerInstance(monitor: IntentMonitor!)Stores the given |
Public functions
getInstance
java-static 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. |
registerInstance
java-static fun registerInstance(monitor: IntentMonitor!): Unit
Stores the given IntentMonitor instance in the registry. Passing null removes the monitor from the registry.