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:
- Retrieving the
NavigationTemplate.NavigationInfo
set viaNavigationTemplate.Builder.setNavigationInfo(NavigationTemplate.NavigationInfo)
. - Retrieving the background color set via
NavigationTemplate.Builder.setBackgroundColor(CarColor)
. - Retrieving the
TravelEstimate
set viaNavigationTemplate.Builder.setDestinationTravelEstimate(TravelEstimate)
. - Retrieving the
ActionStrip
set viaNavigationTemplate.Builder.setActionStrip(ActionStrip)
.
Summary
Nested classes | |
---|---|
interface |
NavigationTemplateController.NavigationInfoController
A controller that allows testing of a |
Public methods | |
---|---|
NavigationTemplate
|
get()
Retrieves the |
ActionStripController
|
getActionStrip()
Returns an |
CarColor
|
getBackgroundColor()
Returns the |
TravelEstimate
|
getDestinationTravelEstimate()
Returns the |
NavigationTemplateController.NavigationInfoController
|
getNavigationInfo()
Returns a |
static
NavigationTemplateController
|
of(NavigationTemplate navigationTemplate)
Creates a |
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-15 UTC.