ListTemplate
public
final
class
ListTemplate
extends Object
implements
Template
java.lang.Object | |
↳ | com.google.android.libraries.car.app.model.ListTemplate |
A template representing a list of items.
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
ListTemplate.Builder.setIsLoading(boolean)
, or theItemList
structure between the templates have not changed. This means that if the previous template has multipleItemList
sections, the new template must have the same number of sections with the same headers. Further, the number of rows and the string contents (title, texts, not counting spans) of each row must not have changed. - For rows that contain a
Toggle
, updates to the title or texts are also allowed if the toggle state has changed between the previous and new templates.
Summary
Nested classes | |
---|---|
class |
ListTemplate.Builder
A builder of |
Public methods | |
---|---|
static
ListTemplate.Builder
|
builder()
Constructs a new builder of |
boolean
|
equals(Object other)
|
int
|
hashCode()
|
String
|
toString()
|
Inherited methods | |
---|---|
Public methods
builder
public static ListTemplate.Builder builder ()
Constructs a new builder of ListTemplate
.
Returns | |
---|---|
ListTemplate.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.