IntentMonitor


interface 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 ).

Monitoring intents requires support from Instrumentation, therefore do not expect an instance to be present under any arbitrary instrumentation.

Summary

Public functions

Unit

Adds an IntentCallback, which will be notified when intents are sent from the current instrumentation process.

Unit

Removes a previously registered IntentCallback.

Public functions

addIntentCallback

fun addIntentCallback(callback: IntentCallback!): Unit

Adds an IntentCallback, which will be notified when intents are sent from the current instrumentation process.

removeIntentCallback

fun removeIntentCallback(callback: IntentCallback!): Unit

Removes a previously registered IntentCallback.