LaneDirection

public final class LaneDirection
extends Object implements VersionedParcelable

java.lang.Object
   ↳ androidx.car.cluster.navigation.LaneDirection


One of the possible directions a driver can go when using a particular lane at a particular step in the navigation. This can be used by the consumer to choose what icon or icons to combine in order to display a lane configuration to the user.

Summary

Nested classes

class LaneDirection.Builder

Builder for creating a LaneDirection  

enum LaneDirection.Shape

Turn amount and direction. 

Public methods

boolean equals(Object o)
LaneDirection.Shape getShape()

Returns shape of this lane direction.

int hashCode()
boolean isHighlighted()

Returns whether this is a direction the driver should take in order to stay in the navigation route.

String toString()

Inherited methods

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getShape

public LaneDirection.Shape getShape ()

Returns shape of this lane direction.

Returns
LaneDirection.Shape

hashCode

public int hashCode ()

Returns
int

isHighlighted

public boolean isHighlighted ()

Returns whether this is a direction the driver should take in order to stay in the navigation route.

Returns
boolean

toString

public String toString ()

Returns
String