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 |
|---|
public final class MapWithContentTemplate.BuilderA builder of |
Public methods |
|
|---|---|
boolean |
|
@Nullable ActionStrip |
Returns the |
@NonNull Template |
Returns the |
@Nullable MapController |
Returns the controls associated with an app-provided map. |
int |
hashCode() |
Public methods
getActionStrip
public @Nullable ActionStrip getActionStrip()
Returns the ActionStrip for this template or null if not set.
| See also | |
|---|---|
setActionStrip |
getContentTemplate
public @NonNull Template getContentTemplate()
Returns the Template content to display in this template.
| See also | |
|---|---|
setContentTemplate |
getMapController
public @Nullable MapController getMapController()
Returns the controls associated with an app-provided map.
| See also | |
|---|---|
setMapController |