RoutingInfo.Builder

public static final class RoutingInfo.Builder
extends Object

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


A builder of RoutingInfo.

Summary

Public constructors

Builder()

Constructs an empty RoutingInfo.Builder instance.

Public methods

RoutingInfo build()

Constructs the RoutingInfo defined by this builder.

RoutingInfo.Builder setCurrentStep(Step currentStep, Distance currentDistance)

Sets the current Step and Distance to display in the template.

RoutingInfo.Builder setJunctionImage(CarIcon junctionImage)

Sets an image of a junction for the maneuver.

RoutingInfo.Builder setLoading(boolean isLoading)

Sets whether the RoutingInfo is in a loading state.

RoutingInfo.Builder setNextStep(Step nextStep)

Sets the next Step.

Inherited methods

Public constructors

Builder