Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

Maneuver

public final class Maneuver
extends Object implements VersionedParcelable

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


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

Summary

Nested classes

class Maneuver.Builder

Builder for creating a Maneuver  

enum Maneuver.Type

Possible maneuver types. 

Public methods

boolean equals(Object o)
int getRoundaboutExitNumber()

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

Maneuver.Type getType()

Returns the maneuver type.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getRoundaboutExitNumber

public int getRoundaboutExitNumber ()

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 Maneuver.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.

Returns
int

getType

public Maneuver.Type getType ()

Returns the maneuver type.

Returns
Maneuver.Type

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String