# 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)

*** ** * ** ***


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

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/car/app/navigation/model/PanModeDelegate#sendPanModeChanged(boolean,androidx.car.app.OnDoneCallback)(boolean isInPanMode, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback)` Notifies that the user has entered or exited pan mode. |

## Public methods

### sendPanModeChanged

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

```
abstract void sendPanModeChanged(boolean isInPanMode, @NonNull OnDoneCallback callback)
```

Notifies that the user has entered or exited pan mode.

| Parameters |
|---|---|
| `boolean isInPanMode` | the latest pan mode state. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback` | the `https://developer.android.com/reference/androidx/car/app/OnDoneCallback` to trigger when the client finishes handling the event |