public final class

Maneuver.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.cluster.navigation.Maneuver.Builder

Overview

Builder for creating a Maneuver

Summary

Constructors
publicBuilder()

Methods
public Maneuverbuild()

Returns a Maneuver built with the provided information.

public Maneuver.BuildersetIcon(ImageReference icon)

Sets a reference to an image presenting this maneuver.

public Maneuver.BuildersetRoundaboutExitNumber(int roundaboutExitNumber)

Sets the roundabout exit number, starting from 1 to designate the first exit after joining the roundabout, and increasing in circulation order.

public Maneuver.BuildersetType(Maneuver.Type type, Maneuver.Type fallbackTypes[])

Sets the Maneuver.Type of maneuver, and any fallback values that could be used by the consumer if the type is unknown to it.

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

Constructors

public Builder()

Methods

public Maneuver.Builder setType(Maneuver.Type type, Maneuver.Type fallbackTypes[])

Sets the Maneuver.Type of maneuver, and any fallback values that could be used by the consumer if the type is unknown to it.

Parameters:

type: Main maneuver type
fallbackTypes: Variations of type, in case the consumer of this API doesn't know the main one (used for backward compatibility). For example, if the main type is Maneuver.Type.OFF_RAMP_NORMAL_LEFT, a fallback type could be Maneuver.Type.TURN_NORMAL_LEFT.

public Maneuver.Builder setRoundaboutExitNumber(int roundaboutExitNumber)

Sets the roundabout exit number, starting from 1 to designate the first exit after joining the roundabout, and increasing in circulation order. Only relevant if Maneuver.getType() is Maneuver.Type.ROUNDABOUT_EXIT or any variation of ROUNDABOUT_ENTER_AND_EXIT.

Returns:

this object for chaining

See also: for more details.

public Maneuver.Builder setIcon(ImageReference icon)

Sets a reference to an image presenting this maneuver. The provided image must be optimized to be presented in a square canvas (aspect ratio of 1:1).

public Maneuver build()

Returns a Maneuver built with the provided information.