Maneuver

class Maneuver : VersionedParcelable
kotlin.Any
   ↳ androidx.car.cluster.navigation.Maneuver

Information about a maneuver that the driver will be required to perform.

Summary

Nested classes

Possible maneuver types.

Builder for creating a Maneuver

Public methods
Int

Boolean
equals(other: Any?)

Int

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

String

Maneuver.Type

Returns the maneuver type.

Public methods

hashCode

fun hashCode(): Int

equals

fun equals(other: Any?): Boolean

getRoundaboutExitNumber

fun getRoundaboutExitNumber(): Int

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

For example, if the driver is joining a counter-clockwise roundabout with 4 exits, then the exit to the right would be exit #1, the one straight ahead would be exit #2, the one to the left would be exit #3 and the one used by the driver to join the roundabout would be exit #4.

toString

fun toString(): String

getType

@NonNull fun getType(): Maneuver.Type

Returns the maneuver type.