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.

Template Restrictions In regards to template refreshes, as described in 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 or ItemLists have not changed.

Summary

Nested types

A builder of MapTemplate.

Public functions

Boolean
equals(other: Any?)
ActionStrip?

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

Header?

Returns the Header to display in this template.

ItemList?

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

MapController?

Returns the controls associated with an app-provided map.

Pane?

Returns the Pane to display in this template.

Int

Public functions

equals

Added in 1.4.0-rc02
fun equals(other: Any?): Boolean

getActionStrip

Added in 1.2.0
fun getActionStrip(): ActionStrip?

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

See also
setActionStrip

getHeader

Added in 1.2.0
fun getHeader(): Header?

Returns the Header to display in this template.

See also
setHeader

getItemList

Added in 1.3.0
fun getItemList(): ItemList?

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

See also
setItemList

getMapController

Added in 1.2.0
fun getMapController(): MapController?

Returns the controls associated with an app-provided map.

See also
setMapController

getPane

Added in 1.2.0
fun getPane(): Pane?

Returns the Pane to display in this template.

See also
setPane

hashCode

Added in 1.4.0-rc02
fun hashCode(): Int