SectionedItemTemplate


@CarProtocol
@ExperimentalCarApi
public final class SectionedItemTemplate implements Template


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

Summary

Nested types

A builder that constructs SectionedItemTemplate instances.

Public methods

boolean
@NonNull List<Action>

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

@Nullable Header

Returns the optional header for this template.

@NonNull List<Section<Object>>

Returns the list of sections within this template.

int
boolean

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

@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getActions

Added in 1.7.0-beta01
public @NonNull List<ActiongetActions()

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

getHeader

Added in 1.7.0-beta01
public @Nullable Header getHeader()

Returns the optional header for this template.

getSections

Added in 1.7.0-beta01
public @NonNull List<Section<Object>> getSections()

Returns the list of sections within this template.

hashCode

public int hashCode()

isLoading

Added in 1.7.0-beta01
public boolean isLoading()

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

toString

public @NonNull String toString()