SectionedItemTemplate


@CarProtocol
@ExperimentalCarApi
class SectionedItemTemplate : Template


A template that contains sections of items like rows, grid items, etc.

Summary

Nested types

A builder that constructs SectionedItemTemplate instances.

Public functions

Boolean
equals(other: Any?)
(Mutable)List<Action!>

Returns the list of actions that should appear alongside the content of this template.

Header?

Returns the optional header for this template.

(Mutable)List<Section<Any!>!>

Returns the list of sections within this template.

Int
Boolean

Returns whether this list can be indexed alphabetically, by item title.

Boolean

Returns whether or not this template is in a loading state.

String

Public functions

equals

fun equals(other: Any?): Boolean

getActions

Added in 1.7.0-beta02
fun getActions(): (Mutable)List<Action!>

Returns the list of actions that should appear alongside the content of this template.

getHeader

Added in 1.7.0-beta02
fun getHeader(): Header?

Returns the optional header for this template.

getSections

Added in 1.7.0-beta02
fun getSections(): (Mutable)List<Section<Any!>!>

Returns the list of sections within this template.

hashCode

fun hashCode(): Int

isAlphabeticalIndexingAllowed

Added in 1.7.0-beta02
fun isAlphabeticalIndexingAllowed(): Boolean

Returns whether this list can be indexed alphabetically, by item title.

"Indexing" refers to the process of examining list contents (e.g. item titles) to sort, partition, or filter a list. Indexing is generally used for features called "Accelerators", which allow a user to quickly find a particular Item in a long list.

To exclude a single item from indexing, see the relevant item's API.

To enable/disable accelerators for the entire list, see setAlphabeticalIndexingAllowed

isLoading

Added in 1.7.0-beta02
fun isLoading(): Boolean

Returns whether or not this template is in a loading state.

toString

fun toString(): String