public final class

IntentMonitorRegistry

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static IntentMonitor getInstance ()

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

Throws
IllegalStateException if no monitor has been registered.

public static void registerInstance (IntentMonitor monitor)

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