# Destination

# Destination

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

*** ** * ** ***

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

<br />

```
@CarProtocol
class Destination
```

<br />

*** ** * ** ***

A class representing information related to a destination.

## Summary

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

|                                    ### 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/Destination#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [CarText](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarText)`?` | [getAddress](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination#getAddress())`()` Returns the address of the destination or`null`if not set.                                   |
| [CarIcon](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarIcon)`?` | [getImage](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination#getImage())`()` Returns an image to display with the destination or`null`if not set.                             |
| [CarText](https://developer.android.com/reference/kotlin/androidx/car/app/model/CarText)`?` | [getName](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination#getName())`()` Returns the name of the destination or`null`if not set.                                            |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                 | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination#hashCode())`()`                                                                                                  |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)           | [toString](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination#toString())`()`                                                                                                  |

## Public functions

### equals

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

### getAddress

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

```
fun getAddress(): CarText?
```

Returns the address of the destination or`null`if not set.  

|                                                                       See also                                                                        |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [setAddress](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination.Builder#setAddress(java.lang.CharSequence)) |   |

### getImage

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

```
fun getImage(): CarIcon?
```

Returns an image to display with the destination or`null`if not set.  

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

### getName

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

```
fun getName(): CarText?
```

Returns the name of the destination or`null`if not set.  

|                                                                    See also                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [setName](https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/Destination.Builder#setName(java.lang.CharSequence)) |   |

### hashCode

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

### toString

```
fun toString(): String
```