Trip.Builder

public static final class Trip.Builder
extends Object

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


A builder of Trip.

Summary

Public constructors

Builder()

Constructs an empty Trip.Builder instance.

Public methods

Trip.Builder addDestination(Destination destination, TravelEstimate destinationTravelEstimate)

Adds a destination to the trip.

Trip.Builder addStep(Step step, TravelEstimate stepTravelEstimate)

Adds a step to the trip.

Trip build()

Constructs the Trip defined by this builder.

Trip.Builder setCurrentRoad(CharSequence currentRoad)

Sets a description of the current road.

Trip.Builder setLoading(boolean isLoading)

Sets whether the Trip is in a loading state.

Inherited methods