# Application.OnProvideAssistDataListener

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# Application.OnProvideAssistDataListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/Application.OnProvideAssistDataListener "View this page in Kotlin") \|Java


`
public
static


interface
Application.OnProvideAssistDataListener
`


`


`

|-----------------------------------------------------|
| android.app.Application.OnProvideAssistDataListener |

<br />

*** ** * ** ***

Callback interface for use with [Application.registerOnProvideAssistDataListener](https://developer.android.com/reference/android/app/Application#registerOnProvideAssistDataListener(android.app.Application.OnProvideAssistDataListener))
and [Application.unregisterOnProvideAssistDataListener](https://developer.android.com/reference/android/app/Application#unregisterOnProvideAssistDataListener(android.app.Application.OnProvideAssistDataListener)).

## Summary

|                                                                                                                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                                                                                                                ||
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onProvideAssistData](https://developer.android.com/reference/android/app/Application.OnProvideAssistDataListener#onProvideAssistData(android.app.Activity,%20android.os.Bundle))`(`[Activity](https://developer.android.com/reference/android/app/Activity)` activity, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` data) ` This is called when the user is requesting an assist, to build a full [Intent.ACTION_ASSIST](https://developer.android.com/reference/android/content/Intent#ACTION_ASSIST) Intent with all of the context of the current application. |

## Public methods

### onProvideAssistData

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void onProvideAssistData (Activity activity, 
                Bundle data)
```

This is called when the user is requesting an assist, to build a full
[Intent.ACTION_ASSIST](https://developer.android.com/reference/android/content/Intent#ACTION_ASSIST) Intent with all of the context of the current
application. You can override this method to place into the bundle anything
you would like to appear in the [Intent.EXTRA_ASSIST_CONTEXT](https://developer.android.com/reference/android/content/Intent#EXTRA_ASSIST_CONTEXT) part
of the assist Intent.

<br />

|          Parameters           ||
|------------|-------------------|
| `activity` | `Activity` <br /> |
| `data`     | `Bundle` <br />   |