public final class

LaneDirection.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.cluster.navigation.LaneDirection.Builder

Overview

Builder for creating a LaneDirection

Summary

Constructors
publicBuilder()

Methods
public LaneDirectionbuild()

Returns a LaneDirection built with the provided information.

public LaneDirection.BuildersetHighlighted(boolean highlighted)

Sets whether this a direction the driver could take in order to stay in the navigation route.

public LaneDirection.BuildersetShape(LaneDirection.Shape shape, LaneDirection.Shape fallbacks[])

Sets the LaneDirection.Shape of this lane direction, and any fallback values that could be used by the consumer if the shape is unknown to it.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

Sets the LaneDirection.Shape of this lane direction, and any fallback values that could be used by the consumer if the shape is unknown to it.

Parameters:

shape: lane direction shape
fallbacks: Variations of shape, in case the consumer of this API doesn't know the main one (used for backward compatibility).

Returns:

this object for chaining

public LaneDirection.Builder setHighlighted(boolean highlighted)

Sets whether this a direction the driver could take in order to stay in the navigation route.

Parameters:

highlighted: true if this is a recommended lane direction, or false otherwise.

Returns:

this object for chaining

public LaneDirection build()

Returns a LaneDirection built with the provided information.