MapWithContentTemplate


@CarProtocol
@RequiresCarApi(value = 7)
public final class MapWithContentTemplate implements 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 methods

boolean
@Nullable ActionStrip

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

@NonNull Template

Returns the Template content to display in this template.

@Nullable MapController

Returns the controls associated with an app-provided map.

int

Public methods

equals

public boolean equals(@Nullable Object other)

getActionStrip

Added in 1.4.0
public @Nullable ActionStrip getActionStrip()

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

See also
setActionStrip

getContentTemplate

Added in 1.4.0
public @NonNull Template getContentTemplate()

Returns the Template content to display in this template.

getMapController

Added in 1.4.0
public @Nullable MapController getMapController()

Returns the controls associated with an app-provided map.

See also
setMapController

hashCode

public int hashCode()