Stay organized with collections Save and categorize content based on your preferences.

IntentMonitorRegistry

public final class IntentMonitorRegistry


Exposes an implementation of IntentMonitor to users.

Summary

Public constructors

Public methods

static IntentMonitor

Returns the IntentMonitor.

static void

Stores the given IntentMonitor instance in the registry.

Public constructors

IntentMonitorRegistry

public IntentMonitorRegistry()

Public methods

getInstance

public static IntentMonitor getInstance()

Returns the IntentMonitor. This monitor is not guaranteed to be present under all' instrumentations.

Throws
java.lang.IllegalStateException java.lang.IllegalStateException

if no monitor has been registered.

registerInstance

public static void registerInstance(IntentMonitor monitor)

Stores the given IntentMonitor instance in the registry. Passing null removes the monitor from the registry.