public final class

IntentMonitorImpl

extends Object
implements IntentMonitor
java.lang.Object
   ↳ android.support.test.internal.runner.intent.IntentMonitorImpl

Class Overview

Monitors all outgoing Intents and signals intent to all registered Callbacks.

This intent monitor will be notified by MonitoringInstrumentation when a new activity was started using startActivity(Intent).

Summary

Public Constructors
IntentMonitorImpl()
Public Methods
void addIntentCallback(IntentCallback callback)
Registers a intent callback which is notified if an outgoing intent was detected by MonitoringInstrumentation.
void removeIntentCallback(IntentCallback callback)
Removes a previously added intent callback.
void signalIntent(Intent intent)
Signal an incoming Intent to all registered IntentCallbacks.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.support.test.runner.intent.IntentMonitor

Public Constructors

public IntentMonitorImpl ()

Public Methods

public void addIntentCallback (IntentCallback callback)

Registers a intent callback which is notified if an outgoing intent was detected by MonitoringInstrumentation.

public void removeIntentCallback (IntentCallback callback)

Removes a previously added intent callback.

public void signalIntent (Intent intent)

Signal an incoming Intent to all registered IntentCallbacks.

The callback is invoked with with a full copy of the intent.

Parameters
intent the intent to signal