MapWithContentTemplate


@CarProtocol
@RequiresCarApi(value = 7)
class MapWithContentTemplate : Template


A template that allows an app to render map tiles with some sort of content (for example, a list). The content is usually rendered as an overlay on top of the map tiles, with the map visible and stable areas adjusting to the content.

See setContentTemplate for the list of supported content templates.

In order to use this template your car app MUST declare that it uses EITHER the androidx.car.app.NAVIGATION_TEMPLATES permission OR the androidx.car.app.MAP_TEMPLATES in the manifest.

Summary

Nested types

A builder of MapWithContentTemplate.

Public functions

Boolean
equals(other: Any?)
ActionStrip?

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

Template

Returns the Template content to display in this template.

MapController?

Returns the controls associated with an app-provided map.

Int

Public functions

equals

fun equals(other: Any?): Boolean

getActionStrip

Added in 1.4.0
fun getActionStrip(): ActionStrip?

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

See also
setActionStrip

getContentTemplate

Added in 1.4.0
fun getContentTemplate(): Template

Returns the Template content to display in this template.

getMapController

Added in 1.4.0
fun getMapController(): MapController?

Returns the controls associated with an app-provided map.

See also
setMapController

hashCode

fun hashCode(): Int