{% setvar book_path %}/reference/kotlin/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 ).
Public functions |
|
|---|---|
Unit |
addIntentCallback(callback: IntentCallback!)Adds an |
Unit |
removeIntentCallback(callback: IntentCallback!)Removes a previously registered |
fun addIntentCallback(callback: IntentCallback!): Unit
Adds an IntentCallback, which will be notified when intents are sent from the current instrumentation process.
fun removeIntentCallback(callback: IntentCallback!): Unit
Removes a previously registered IntentCallback.