IntentMonitorRegistry

public final class IntentMonitorRegistry
extends Object

java.lang.Object
   ↳ android.support.test.runner.intent.IntentMonitorRegistry


Exposes an implementation of IntentMonitor to users.

Summary

Public methods

static IntentMonitor getInstance()

Returns the IntentMonitor.

static void registerInstance(IntentMonitor monitor)

Stores the given IntentMonitor instance in the registry.

Inherited methods

From class java.lang.Object

Public methods

getInstance

IntentMonitor getInstance ()

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

Returns
IntentMonitor

Throws
IllegalStateException if no monitor has been registered.

registerInstance

void registerInstance (IntentMonitor monitor)

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

Parameters
monitor IntentMonitor