Destination.Builder

public static final class Destination.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.navigation.model.Destination.Builder


A builder of Destination.

Summary

Public constructors

Builder()

Returns an empty Destination.Builder instance.

Public methods

Destination build()

Constructs the Destination defined by this builder.

Destination.Builder setAddress(CharSequence address)

Sets the destination address formatted for the user's current locale.

Destination.Builder setImage(CarIcon image)

Sets the destination image to display.

Destination.Builder setName(CharSequence name)

Sets the destination name formatted for the user's current locale.

Inherited methods

Public constructors

Builder

public Builder ()

Returns an empty Destination.Builder instance.

Public methods

build

public Destination build ()