The second Android 11 Developer Preview is now available, test it out and share your feedback.

AlphaJumpAdapter

interface AlphaJumpAdapter
androidx.car.widget.AlphaJumpAdapter

An interface that you can implement on your Adapter to enable support for Alpha-Jump.

Summary

Public methods

abstract MutableList<AlphaJumpBucket!>!

Generate and populate the buckets used to populate the alpha-jump menu.

abstract Unit

Called every time the alpha-jump menu is entered.

abstract Unit

Called every time the alpha-jump menu is left.

Public methods

getAlphaJumpBuckets

abstract fun getAlphaJumpBuckets(): MutableList<AlphaJumpBucket!>!

Generate and populate the buckets used to populate the alpha-jump menu.

onAlphaJumpEnter

abstract fun onAlphaJumpEnter(): Unit

Called every time the alpha-jump menu is entered.

onAlphaJumpLeave

abstract fun onAlphaJumpLeave(bucket: AlphaJumpBucket!): Unit

Called every time the alpha-jump menu is left.

Parameters
bucket AlphaJumpBucket!: The AlphaJumpBucket that the user clicked on, and should be jumped to.