PlaceListMapTemplate
@CarProtocol
class PlaceListMapTemplate : Template
A template that displays a map along with a list of places.
The map can display markers corresponding to the places in the list. See setItemList for details.
onGetTemplate, this template is considered a refresh of a previous one if:
- The previous template is in a loading state (see
setLoading, or - 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
ItemLists have not changed. - The template is sent in response to a user-initiated content refresh request. (see
setOnContentRefreshListener.
Summary
Nested types |
|---|
|
A builder of |
Public functions |
|
|---|---|
Boolean |
|
ActionStrip? |
Returns the |
Place? |
Returns the |
Action? |
Returns the |
ItemList? |
Returns the |
OnContentRefreshDelegate? |
@RequiresCarApi(value = 5)Returns the |
CarText? |
getTitle()Returns the title of the template or |
Int |
hashCode() |
Boolean |
|
Boolean |
Returns whether the template is loading. |
String |
toString() |
Public functions
getActionStrip
fun getActionStrip(): ActionStrip?
Returns the ActionStrip for this template or null if not set.
| See also | |
|---|---|
setActionStrip |
getAnchor
fun getAnchor(): Place?
Returns the Place instance to display as an anchor in the map.
| See also | |
|---|---|
setAnchor |
getHeaderAction
fun getHeaderAction(): Action?
Returns the Action that is set to be displayed in the header of the template, or null if not set.
| See also | |
|---|---|
setHeaderAction |
getItemList
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 |
getOnContentRefreshDelegate
@RequiresCarApi(value = 5)
fun getOnContentRefreshDelegate(): OnContentRefreshDelegate?
Returns the OnContentRefreshDelegate to be called when the user requests for content refresh for this template.
| See also | |
|---|---|
setOnContentRefreshListener |
getTitle
fun getTitle(): CarText?
Returns the title of the template or null if not set.
| See also | |
|---|---|
setTitle |
isLoading
fun isLoading(): Boolean
Returns whether the template is loading.
| See also | |
|---|---|
setLoading |