IntentMonitor


public 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 methods

abstract void

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

abstract void

Removes a previously registered IntentCallback.

Public methods

addIntentCallback

abstract void addIntentCallback(IntentCallback callback)

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

removeIntentCallback

abstract void removeIntentCallback(IntentCallback callback)

Removes a previously registered IntentCallback.

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 27, 2019

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024

Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.

Updated Nov 6, 2023