RoutePreviewNavigationTemplate.Builder

public static final class RoutePreviewNavigationTemplate.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.navigation.model.RoutePreviewNavigationTemplate.Builder


A builder of RoutePreviewNavigationTemplate.

Summary

Public constructors

Builder()

Constructs an empty RoutePreviewNavigationTemplate.Builder instance.

Public methods

RoutePreviewNavigationTemplate build()

Constructs the template defined by this builder.

RoutePreviewNavigationTemplate.Builder setActionStrip(ActionStrip actionStrip)

Sets the ActionStrip for this template, or null to not display an ActionStrip.

RoutePreviewNavigationTemplate.Builder setHeaderAction(Action headerAction)

Sets the Action that will be displayed in the header of the template, or null to not display an action.

RoutePreviewNavigationTemplate.Builder setItemList(ItemList itemList)

Sets an ItemList to show route options in a list view along with the map.

RoutePreviewNavigationTemplate.Builder setLoading(boolean isLoading)

Sets whether the template is in a loading state.

RoutePreviewNavigationTemplate.Builder setMapActionStrip(ActionStrip actionStrip)

Sets an ActionStrip with a list of map-control related actions for this template, such as pan or zoom.

RoutePreviewNavigationTemplate.Builder setNavigateAction(Action navigateAction)

Sets the Action to allow users to request navigation using the currently selected route.

RoutePreviewNavigationTemplate.Builder setPanModeListener(PanModeListener panModeListener)

Sets a PanModeListener that notifies when the user enters and exits the pan mode.

RoutePreviewNavigationTemplate.Builder