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

PlaceListMapTemplate

public final class PlaceListMapTemplate
extends Object implements Template

java.lang.Object
   ↳ com.google.android.libraries.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.getTemplate(), this template is considered a refresh of a previous one if:
  • The template title has not changed, and
  • The previous template is in a loading state (see PlaceListMapTemplate.Builder.setIsLoading(boolean), or the number of rows and the string contents (title, texts, not counting spans) of each row between the previous and new ItemLists have not changed.

Summary

Nested classes

class PlaceListMapTemplate.Builder

A builder of PlaceListMapTemplate

Public methods

static PlaceListMapTemplate.Builder builder()

Constructs a new builder of PlaceListMapTemplate.

boolean equals(Object other)
int hashCode()
String toString()

Inherited methods

Public methods

builder

public static PlaceListMapTemplate.Builder builder ()

Constructs a new builder of PlaceListMapTemplate.

Returns
PlaceListMapTemplate.Builder

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String