| android.support.test.runner.intent.IntentMonitor |
Interface for tests to use when they need to monitor intents used to start activities from
the current Instrumentation.
Retrieve instances of the monitor through {@link IntentMonitorRegistry).
Monitoring intents requires support from Instrumentation, therefore do not expect an instance to be present under any arbitrary instrumentation.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds an
IntentCallback, which will be notified when intents are sent from the
current instrumentation process. | |||||||||||
Removes a previously registered
IntentCallback. | |||||||||||
Adds an IntentCallback, which will be notified when intents are sent from the
current instrumentation process.
| Parameters | |
|---|---|
callback |
IntentCallback |
Removes a previously registered IntentCallback.
| Parameters | |
|---|---|
callback |
IntentCallback |