AlphaJumpBucket

interface AlphaJumpBucket
androidx.car.widget.AlphaJumpBucket

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

Summary

Public methods

abstract Int

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

abstract CharSequence!

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

abstract Boolean

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

Public methods

getIndex

abstract fun getIndex(): Int

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

getLabel

abstract fun getLabel(): CharSequence!

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

isEmpty

abstract fun isEmpty(): Boolean

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