# PanModeDelegate

# PanModeDelegate

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/navigation/model/PanModeDelegate.java+class:androidx.car.app.navigation.model.PanModeDelegate)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

*** ** * ** ***

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

<br />

```
@CarProtocol
@RequiresCarApi(value = 2)
interface PanModeDelegate
```

<br />

*** ** * ** ***

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

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendPanModeChanged](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/PanModeDelegate#sendPanModeChanged(boolean,androidx.car.app.OnDoneCallback))`(isInPanMode: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`, callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Notifies that the user has entered or exited pan mode. |

## Public functions

### sendPanModeChanged

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

```
fun sendPanModeChanged(isInPanMode: Boolean, callback: OnDoneCallback): Unit
```

Notifies that the user has entered or exited pan mode.  

|                                                  Parameters                                                  |
|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `isInPanMode: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)           | the latest pan mode state.                                                                                                                                |
| `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 |