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

NavigationTemplateController

public class NavigationTemplateController
extends Object

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


A controller that allows testing of a NavigationTemplate.

This controller allows:

Summary

Nested classes

interface NavigationTemplateController.NavigationInfoController

A controller that allows testing of a NavigationTemplate.NavigationInfo

Public methods

NavigationTemplate get()

Retrieves the RoutePreviewNavigationTemplate that this controller is controlling.

ActionStripController getActionStrip()

Returns an ActionStripController that contains the ActionStrip in the NavigationTemplate that is being controlled.

CarColor getBackgroundColor()

Returns the CarColor that is set in the NavigationTemplateController, or null if one is not present.

TravelEstimate getDestinationTravelEstimate()

Returns the TravelEstimate that is set in the NavigationTemplateController, or null if one is not present.

NavigationTemplateController.NavigationInfoController getNavigationInfo()

Returns a NavigationTemplate.NavigationInfo set in the NavigationTemplateController, or null if one is not present.

static NavigationTemplateController of(NavigationTemplate navigationTemplate)

Creates a NavigationTemplateController to control an NavigationTemplate for testing.

Inherited methods

Public methods

get

public NavigationTemplate get ()

Retrieves the RoutePreviewNavigationTemplate that this controller is controlling.

Returns
NavigationTemplate

getActionStrip

public ActionStripController getActionStrip ()

Returns an ActionStripController that contains the ActionStrip in the NavigationTemplate that is being controlled.

Returns
ActionStripController

getBackgroundColor

public CarColor getBackgroundColor ()

Returns the CarColor that is set in the NavigationTemplateController, or null if one is not present.

Returns
CarColor

getDestinationTravelEstimate

public TravelEstimate getDestinationTravelEstimate ()

Returns the TravelEstimate that is set in the NavigationTemplateController, or null if one is not present.

Returns
TravelEstimate

getNavigationInfo

public NavigationTemplateController.NavigationInfoController getNavigationInfo ()

Returns a NavigationTemplate.NavigationInfo set in the NavigationTemplateController, or null if one is not present.

Returns
NavigationTemplateController.NavigationInfoController

of

public static NavigationTemplateController of (NavigationTemplate navigationTemplate)

Creates a NavigationTemplateController to control an NavigationTemplate for testing.

Parameters
navigationTemplate NavigationTemplate

Returns
NavigationTemplateController