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