SectionedItemList


@CarProtocol
class SectionedItemList


Represents an ItemList that is contained inside a section.

Summary

Public functions

java-static SectionedItemList
create(itemList: ItemList, sectionHeader: CharSequence)

Creates an instance of a SectionedItemList with the given itemList and sectionHeader.

Boolean
equals(other: Any?)
CarText

Returns the title of the section.

ItemList

Returns the ItemList for the section.

Int
String

Public functions

create

Added in 1.0.0
java-static fun create(itemList: ItemList, sectionHeader: CharSequence): SectionedItemList

Creates an instance of a SectionedItemList with the given itemList and sectionHeader.

Only DistanceSpans and DurationSpans are supported in the section header.

Throws
java.lang.IllegalArgumentException

if sectionHeader contains unsupported spans

equals

fun equals(other: Any?): Boolean

getHeader

Added in 1.0.0
fun getHeader(): CarText

Returns the title of the section.

getItemList

Added in 1.0.0
fun getItemList(): ItemList

Returns the ItemList for the section.

hashCode

fun hashCode(): Int

toString

fun toString(): String