Summary: Methods | Inherited Methods | [Expand All]

# 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`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## 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`

- ## Interfaces

  - IntentCallback
  - IntentMonitor
  - IntentStubber

- ## Classes

  - IntentMonitorRegistry
  - IntentStubberRegistry