PlaceListNavigationTemplate
public
final
class
PlaceListNavigationTemplate
extends Object
implements
Template
java.lang.Object | |
↳ | com.google.android.libraries.car.app.navigation.model.PlaceListNavigationTemplate |
A template that supports showing a list of places alongside a custom drawn map.
The template itself does not expose a drawing surface. In order to draw on the canvas, use
AppManager.setSurfaceListener(SurfaceListener)
.
Template Restrictions
In regards to template refreshes, as described inScreen.getTemplate()
, this template is
considered a refresh of a previous one if:
- The template title has not changed, and
- The previous template is in a loading state (see
PlaceListNavigationTemplate.Builder.setIsLoading(boolean)
, or the number of rows and the string contents (title, texts, not counting spans) of each row between the previous and newItemList
s have not changed.
In order to use this template your car app MUST declare that it uses the com.google.android.libraries.car.app.NAVIGATION_TEMPLATES
permission in the manifest.
Summary
Nested classes | |
---|---|
class |
PlaceListNavigationTemplate.Builder
A builder of |
Public methods | |
---|---|
static
PlaceListNavigationTemplate.Builder
|
builder()
Constructs a new builder of |
boolean
|
equals(Object other)
|
int
|
hashCode()
|
String
|
toString()
|
Inherited methods | |
---|---|
Public methods
builder
public static PlaceListNavigationTemplate.Builder builder ()
Constructs a new builder of PlaceListNavigationTemplate
.
Returns | |
---|---|
PlaceListNavigationTemplate.Builder |
hashCode
public int hashCode ()
Returns | |
---|---|
int |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-15 UTC.