# IntentCallback

# IntentCallback

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


interface
IntentCallback
`  
`


`

|---------------------------------------------------|
| android.support.test.runner.intent.IntentCallback |

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                                                               ### Public methods                                                                                                                                                                               ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onIntentSent](https://developer.android.com/reference/android/support/test/runner/intent/IntentCallback#onIntentSent(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent) ` Called on main thread when an activity is started from the current instrumentation process by the given intent. |

## Public methods

### onIntentSent

```
void onIntentSent (Intent intent)
```

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

<br />

|        Parameters         ||
|----------|-----------------|
| `intent` | `Intent` <br /> |

-

  ## Interfaces

  - [IntentCallback](https://developer.android.com/reference/android/support/test/runner/intent/IntentCallback)
  - [IntentMonitor](https://developer.android.com/reference/android/support/test/runner/intent/IntentMonitor)
  - [IntentStubber](https://developer.android.com/reference/android/support/test/runner/intent/IntentStubber)
-

  ## Classes

  - [IntentMonitorRegistry](https://developer.android.com/reference/android/support/test/runner/intent/IntentMonitorRegistry)
  - [IntentStubberRegistry](https://developer.android.com/reference/android/support/test/runner/intent/IntentStubberRegistry)