Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

LaneDirection

class LaneDirection : VersionedParcelable
kotlin.Any
   ↳ 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

Builder for creating a LaneDirection

Turn amount and direction.

Public methods

Boolean
equals(other: Any?)

LaneDirection.Shape

Returns shape of this lane direction.

Int

Boolean

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

String

Public methods

equals

fun equals(other: Any?): Boolean

getShape

@NonNull fun getShape(): LaneDirection.Shape

Returns shape of this lane direction.

hashCode

fun hashCode(): Int

isHighlighted

fun isHighlighted(): Boolean

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

toString

fun toString(): String