{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
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 an instance to be present under any arbitrary instrumentation.
Public methods |
|
|---|---|
abstract @NonNull void |
addIntentCallback(@NonNull IntentCallback callback)Adds an |
abstract @NonNull void |
removeIntentCallback(@NonNull IntentCallback callback)Removes a previously registered |
@NonNull
public abstract void addIntentCallback(@NonNull IntentCallback callback)
Adds an IntentCallback, which will be notified when intents are sent from the current instrumentation process.
@NonNull
public abstract void removeIntentCallback(@NonNull IntentCallback callback)
Removes a previously registered IntentCallback.