Bucket

interface Bucket
androidx.car.widget.IAlphaJumpAdapter.Bucket

A bucket represents a "button" in the alpha-jump menu.

Summary

Public methods
abstract CharSequence!

Return the label for this bucket, that is displayed at the text to the user.

abstract Int

Return the index of the first item that this bucket matches in the list.

abstract Boolean

Return true if the bucket is empty (and therefore the button should be displayed disabled).

Public methods

getLabel

abstract fun getLabel(): CharSequence!

Return the label for this bucket, that is displayed at the text to the user.

getIndex

abstract fun getIndex(): Int

Return the index of the first item that this bucket matches in the list.

isEmpty

abstract fun isEmpty(): Boolean

Return true if the bucket is empty (and therefore the button should be displayed disabled).