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

Step

public final class Step
extends Object

java.lang.Object
   ↳ com.google.android.libraries.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

static Step.Builder builder(CharSequence cue)

Constructs a new builder of Step with a cue.

boolean equals(Object other)
int hashCode()
Step.Builder newBuilder()

Returns a new Step.Builder instance configured with the same data as this Step instance.

String toString()

Inherited methods

Public methods

builder

public static Step.Builder builder (CharSequence cue)

Constructs a new builder of Step with a cue.

A cue must always be set when the step is created and is used as a fallback when Maneuver is not set or is unavailable.

Parameters
cue CharSequence

Returns
Step.Builder

Throws
NullPointerException if cue is null.

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

newBuilder

public Step.Builder newBuilder ()

Returns a new Step.Builder instance configured with the same data as this Step instance.

Returns
Step.Builder

toString

public String toString ()

Returns
String