MapTemplate
@RequiresCarApi(value = 5)
@CarProtocol
class MapTemplate : 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 |
|---|
class MapTemplate.BuilderA builder of |
Public functions |
|
|---|---|
Boolean |
|
ActionStrip? |
Returns the |
Header? |
Returns the |
ItemList? |
Returns the |
MapController? |
Returns the controls associated with an app-provided map. |
Pane? |
Returns the |
Int |
|
Public functions
fungetActionStrip(): ActionStrip?
Returns the ActionStrip for this template or null if not set.
| See also | |
|---|---|
setActionStrip |
fungetItemList(): ItemList?
Returns the ItemList instance with the list of items to display in the template, or null if not set.
| See also | |
|---|---|
setItemList |
fungetMapController(): MapController?
Returns the controls associated with an app-provided map.
| See also | |
|---|---|
setMapController |