Section


@CarProtocol
@ExperimentalCarApi
abstract class Section<T : Item?>

Known direct subclasses
GridSection

A section within the SectionedItemTemplate that contains GridItems - good for showcase large artwork or images for every entry.

RowSection

A section within the SectionedItemTemplate that contains Rows - good for showcasing small icons and longer text for every entry.


The generic interface for a single section within a sectioned item template. Sections only allow a single type of Item to be added.

Parameters
<T : Item?>

the type of Item that's allowed to be added to this section

Summary

Nested types

protected abstract class Section.BaseBuilder<T : Item?, B>

Generic Section builder that contains the fields that all sections share.

Protected constructors

Section(builder: Section.BaseBuilder<T!, Any!>)

Constructor that fills out fields from any section builder.

Public functions

Boolean
equals(other: Any?)
ListDelegate<T!>

Returns the items added to this section.

CarText?

Returns the optional message that should appear if there are no items added to this section.

CarText?

Returns the optional text that should appear with the items in this section.

Int
String

Protected constructors

Section

Added in 1.7.0-beta03
protected Section()

Section

Added in 1.7.0-beta03
protected Section(builder: Section.BaseBuilder<T!, Any!>)

Constructor that fills out fields from any section builder.

Public functions

equals

fun equals(other: Any?): Boolean

getItemsDelegate

Added in 1.7.0-beta03
fun getItemsDelegate(): ListDelegate<T!>

Returns the items added to this section.

getNoItemsMessage

Added in 1.7.0-beta03
fun getNoItemsMessage(): CarText?

Returns the optional message that should appear if there are no items added to this section.

getTitle

Added in 1.7.0-beta03
fun getTitle(): CarText?

Returns the optional text that should appear with the items in this section.

hashCode

fun hashCode(): Int

toString

fun toString(): String