RowSection


@ExperimentalCarApi
@CarProtocol
class RowSection : Section


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

Summary

Nested types

A builder that constructs RowSection instances.

Public functions

Boolean
equals(other: Any?)
Int

When set to a value that correlates to an index in getItemsDelegate, this entire row section should be treated as a selection group (eg. radio group).

Int
Boolean

Flag denoting whether or not this section of rows should be treated as a selection group (ie. radio button group).

String

Inherited functions

From androidx.car.app.model.Section
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.

Public functions

equals

fun equals(other: Any?): Boolean

getInitialSelectedIndex

Added in 1.7.0-beta03
fun getInitialSelectedIndex(): Int

When set to a value that correlates to an index in getItemsDelegate, this entire row section should be treated as a selection group (eg. radio group). Otherwise this will be a negative value to denote that this row section should not be transformed into a selection group.

hashCode

fun hashCode(): Int

isSelectionGroup

Added in 1.7.0-beta03
fun isSelectionGroup(): Boolean

Flag denoting whether or not this section of rows should be treated as a selection group (ie. radio button group).

toString

fun toString(): String