PlaceListNavigationTemplate

public final class PlaceListNavigationTemplate
extends Object implements Template

java.lang.Object
   ↳ androidx.car.app.navigation.model.PlaceListNavigationTemplate


A template that supports showing a list of places alongside a custom drawn map.

The template itself does not expose a drawing surface. In order to draw on the canvas, use AppManager.setSurfaceCallback(SurfaceCallback).

Template Restrictions

In regards to template refreshes, as described in Screen.onGetTemplate(), this template is considered a refresh of a previous one if:

In order to use this template your car app MUST declare that it uses the androidx.car.app.NAVIGATION_TEMPLATES permission in the manifest.

Summary

Nested classes

class PlaceListNavigationTemplate.Builder

A builder of PlaceListNavigationTemplate

Public methods

boolean equals(Object other)
ActionStrip getActionStrip()

Returns the ActionStrip for this template or null if not set.

Action getHeaderAction()

Returns the Action that is set to be displayed in the header of the template or null if not set.

ItemList getItemList()

Returns the list of items to display alongside the map or null if the list is not set.

ActionStrip getMapActionStrip()

Returns the map ActionStrip for this template or null if not set.

OnContentRefreshDelegate getOnContentRefreshDelegate()

Returns the OnContentRefreshDelegate to be called when the user requests for content refresh for this template.

PanModeDelegate getPanModeDelegate()

Returns the PanModeDelegate that should be called when the user interacts with pan mode on this template, or null if a