PlaceListMapTemplate

public final class PlaceListMapTemplate
extends Object implements Template

java.lang.Object
   ↳ androidx.car.app.model.PlaceListMapTemplate


A template that displays a map along with a list of places.

The map can display markers corresponding to the places in the list. See PlaceListMapTemplate.Builder.setItemList(ItemList) for details.

Template Restrictions

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

Summary

Nested classes

class PlaceListMapTemplate.Builder

A builder of PlaceListMapTemplate

Public methods

boolean equals(Object other)
ActionStrip getActionStrip()

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

Place getAnchor()

Returns the Place instance to display as an anchor in the map.

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 ItemList instance with the list of items to display in the template, or null if not set.

CarText getTitle()

Returns the title of the template or null if not set.

int hashCode()
boolean isCurrentLocationEnabled()
boolean isLoading()

Returns whether the template is loading.

String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getActionStrip

public ActionStrip getActionStrip ()

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

Returns
ActionStrip

getAnchor

public Place getAnchor ()

Returns the Place instance to display as an anchor in the map.

Returns
Place

getHeaderAction

public Action getHeaderAction ()

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

Returns
Action

getItemList

public ItemList getItemList ()

Returns the ItemList instance with the list of items to display in the template, or null if not set.

Returns
ItemList

getTitle

public CarText getTitle ()

Returns the title of the template or null if not set.

Returns
CarText

hashCode

public int hashCode ()

Returns
int

isCurrentLocationEnabled

public boolean isCurrentLocationEnabled ()

Returns
boolean

isLoading

public boolean isLoading ()

Returns whether the template is loading.

Returns
boolean