Android 12 Developer Preview is here! Try it out, and give us your feedback!

Step

public final class Step
extends Object

java.lang.Object
   ↳ androidx.car.app.navigation.model.Step


Represents a step that the driver should take in order to remain on the current navigation route.

Example of steps are turning onto a street, taking a highway exit and merging onto a different highway, or continuing straight through a roundabout.

Summary

Nested classes

class Step.Builder

A builder of Step

Public methods

boolean equals(Object other)
CarText getCue()

Returns the text description of this maneuver or null if not set.

List<Lane> getLanes()

Returns a list of Lane that contains information of the road lanes at the point where the driver should execute this step.

CarIcon getLanesImage()

Returns the image representing all the lanes or null if not set.

Maneuver getManeuver()

Returns the maneuver to be performed on this step or null if this step doesn't involve a maneuver.

CarText getRoad()

Returns the text description of the road for the step or null if unknown.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getCue

public CarText getCue ()

Returns the text description of this maneuver or null if not set.

Returns
CarText

getLanes

public List<Lane> getLanes ()

Returns a list of Lane that contains information of the road lanes at the point where the driver should execute this step.

Returns
List<Lane>

getLanesImage

public CarIcon getLanesImage ()

Returns the image representing all the lanes or null if not set.

Returns
CarIcon

getManeuver

public Maneuver getManeuver ()

Returns the maneuver to be performed on this step or null if this step doesn't involve a maneuver.

Returns
Maneuver

getRoad

public CarText getRoad ()

Returns the text description of the road for the step or null if unknown.

Returns
CarText

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String