Google is committed to advancing racial equity for Black communities. See how.

StepController

public class StepController
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.testing.navigation.model.StepController


A controller that allows testing of a Step.

This controller allows retrieving the following fields:

Summary

Public methods

Step get()

Retrieves the Step that this controller is controlling.

String getCue()

Retrieves the cue set in the Step being controlled.

List<LaneController> getLanes()

Returns a list of LaneControllers, each containing a Lane added via Step.Builder.addLane(Lane).

Maneuver getManeuver()

Retrieves the Maneuver that is set in the Step that is being controlled, or null if none is present.

String getRoad()

Retrieves the road set in the Step being controlled, or null if none is present.

static StepController of(Step step)

Creates a StepController to control a Step for testing.

Inherited methods

Public methods

get

public Step get ()

Retrieves the Step that this controller is controlling.

Returns
Step

getCue

public String getCue ()

Retrieves the cue set in the Step being controlled.

The values returned are the CharSequence.toString() for the cue provided.

Returns
String

getLanes

public List<LaneController> getLanes ()

Returns a list of LaneControllers, each containing a Lane added via Step.Builder.addLane(Lane).

Returns
List<LaneController>

getManeuver

public Maneuver getManeuver ()

Retrieves the Maneuver that is set in the Step that is being controlled, or null if none is present.

Returns
Maneuver

getRoad

public String getRoad ()

Retrieves the road set in the Step being controlled, or null if none is present.

The values returned are the CharSequence.toString() for the road provided.

Returns
String

of

public static StepController of (Step step)

Creates a StepController to control a Step for testing.

Parameters
step Step

Returns
StepController