# IntentCallback

# IntentCallback

Artifact:[androidx.test:monitor](https://developer.android.com/jetpack/androidx/releases/test)  
[View Source](https://cs.android.com/search?q=file:androidx/test/runner/intent/IntentCallback.java+class:androidx.test.runner.intent.IntentCallback)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/test/runner/intent/IntentCallback "View this page in Java")

<br />

```
interface IntentCallback
```

<br />

*** ** * ** ***

Callback for monitoring Intents captured by[android.app.Instrumentation](https://developer.android.com/reference/android/app/Instrumentation.html).

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onIntentSent](https://developer.android.com/reference/kotlin/androidx/test/runner/intent/IntentCallback#onIntentSent(android.content.Intent))`(intent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)`!)` Called on main thread when an activity is started from the current instrumentation process by the given intent. |

## Public functions

### onIntentSent

```
fun onIntentSent(intent: Intent!): Unit
```

Called on main thread when an activity is started from the current instrumentation process by the given intent.