# OnContentRefreshDelegate

# OnContentRefreshDelegate

Artifact:[androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app)  
[View Source](https://cs.android.com/search?q=file:androidx/car/app/model/OnContentRefreshDelegate.java+class:androidx.car.app.model.OnContentRefreshDelegate)  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.2.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/model/OnContentRefreshDelegate "View this page in Java")

<br />

```
@CarProtocol
@RequiresCarApi(value = 5)
interface OnContentRefreshDelegate
```

<br />

*** ** * ** ***

A host-side delegate for sending[androidx.car.app.model.OnContentRefreshListener](https://developer.android.com/reference/kotlin/androidx/car/app/model/OnContentRefreshListener)events to the car app.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendContentRefreshRequested](https://developer.android.com/reference/kotlin/androidx/car/app/model/OnContentRefreshDelegate#sendContentRefreshRequested(androidx.car.app.OnDoneCallback))`(callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Notifies that a content refresh has been requested by the user. |

## Public functions

### sendContentRefreshRequested

Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.2.0)  

```
fun sendContentRefreshRequested(callback: OnDoneCallback): Unit
```

Notifies that a content refresh has been requested by the user.  

|                                                  Parameters                                                  |
|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback) | the[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)to trigger when the client finishes handling the event |