# MapController

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

*** ** * ** ***


```
@RequiresCarApi(value = 5)
@CarProtocol
public final class MapController
```

<br />

*** ** * ** ***

A component that holds onto controls associated with an app-provided provided map tile.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/navigation/model/MapController.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/ActionStrip` | `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController#getMapActionStrip()()` Returns the map `https://developer.android.com/reference/androidx/car/app/model/ActionStrip` for this component (which will be shown on the active template) or `null` if not set. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/navigation/model/PanModeDelegate` | `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController#getPanModeDelegate()()` Returns `https://developer.android.com/reference/androidx/car/app/navigation/model/PanModeDelegate` that should be called when the user interacts with pan mode on the active template. |
| `int` | `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController#hashCode()()` |

## Public methods

### equals

```
public boolean equals(@Nullable Object other)
```

### getMapActionStrip

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

```
public @Nullable ActionStrip getMapActionStrip()
```

Returns the map `https://developer.android.com/reference/androidx/car/app/model/ActionStrip` for this component (which will be shown on the active template) or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController.Builder#setMapActionStrip(androidx.car.app.model.ActionStrip)` |   |

### getPanModeDelegate

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

```
public @Nullable PanModeDelegate getPanModeDelegate()
```

Returns `https://developer.android.com/reference/androidx/car/app/navigation/model/PanModeDelegate` that should be called when the user interacts with pan mode on the active template.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/navigation/model/MapController.Builder#setPanModeListener(androidx.car.app.navigation.model.PanModeListener)` |   |

### hashCode

```
public int hashCode()
```