MapTemplate
@RequiresCarApi(value = 5)
@CarProtocol
public final class MapTemplate implements Template
A template that displays a map with data such as Pane or ItemList on top of it.
onGetTemplate, this template is considered a refresh of a previous one if:
- The template title has not changed, and the number of rows and the title (not counting spans) of each row between the previous and new
Panes orItemLists have not changed.
MapTemplate, if the template was:
MapTemplate.Builder builder = new MapTemplate.Builder()
.setPane(paneBuilder.build())
.setActionStrip(actionStrip)
.setHeader(header)
.setMapController(mapController)
.build();MapWithContentTemplate, the template would be:
MapWithContentTemplate template = new MapWithContentTemplate.Builder()
.setContentTemplate(new PaneTemplate.Builder(paneBuilder.build())
.setHeader(header)
.build())
.setActionStrip(actionStrip)
.setMapController(mapController)
.build();Summary
Nested types |
|---|
public final class MapTemplate.BuilderA builder of |
Public methods |
|
|---|---|
boolean |
|
@Nullable ActionStrip |
Returns the |
@Nullable Header |
Returns the |
@Nullable ItemList |
Returns the |
@Nullable MapController |
Returns the controls associated with an app-provided map. |
@Nullable Pane |
Returns the |
int |
|
Public methods
public @Nullable ActionStripgetActionStrip()
Returns the ActionStrip for this template or null if not set.
| See also | |
|---|---|
setActionStrip |
public @Nullable HeadergetHeader()
Returns the Header to display in this template.
| See also | |
|---|---|
setHeader |
public @Nullable ItemListgetItemList()
Returns the ItemList instance with the list of items to display in the template, or null if not set.
| See also | |
|---|---|
setItemList |
public @Nullable MapControllergetMapController()
Returns the controls associated with an app-provided map.
| See also | |
|---|---|
setMapController |