# MapController

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

*** ** * ** ***

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

<br />

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

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                           ### Nested types                                                                                                                           |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[MapController.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/MapController.Builder) A builder of[MapController](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/MapController). |

|                                                  ### Public functions                                                  |
|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                    | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/MapController#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                                                  |
| [ActionStrip](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip)`?`                    | [getMapActionStrip](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/MapController#getMapActionStrip())`()` Returns the map[ActionStrip](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip)for this component (which will be shown on the active template) or`null`if not set.              |
| [PanModeDelegate](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/PanModeDelegate)`?` | [getPanModeDelegate](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/MapController#getPanModeDelegate())`()` Returns[PanModeDelegate](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/PanModeDelegate)that should be called when the user interacts with pan mode on the active template. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                            | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/MapController#hashCode())`()`                                                                                                                                                                                                                                   |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### getMapActionStrip

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

```
fun getMapActionStrip(): ActionStrip?
```

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

|                                                                                     See also                                                                                      |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [setMapActionStrip](https://developer.android.com/reference/kotlin/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)  

```
fun getPanModeDelegate(): PanModeDelegate?
```

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

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

### hashCode

```
fun hashCode(): Int
```