IntentMonitorRegistry
public final class IntentMonitorRegistry
Exposes an implementation of IntentMonitor
to users.
Summary
Public methods |
|
---|---|
static @NonNull IntentMonitor |
Returns the IntentMonitor. |
static @NonNull void |
registerInstance(@NonNull IntentMonitor monitor) Stores the given |
Public methods
getInstance
@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. |
registerInstance
@NonNull
public static void registerInstance(@NonNull IntentMonitor monitor)
Stores the given IntentMonitor
instance in the registry. Passing null removes the monitor from the registry.