IntentMonitorRegistry


public final class IntentMonitorRegistry


Exposes an implementation of IntentMonitor to users.

Summary

Public methods

static IntentMonitor

Returns the IntentMonitor.

static void

Stores the given IntentMonitor instance in the registry.

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

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.