ListItemViewModel

sealed class ListItemViewModel : IndicatorContentProvider

The ViewModel for an item in a TtListRecyclerView.

Types

Link copied to clipboard
enum ListItemType : Enum<ListItemViewModel.ListItemType>

Describes what kind of item the ViewModel populates.

Properties

Link copied to clipboard
abstract val itemId: Any

A unique and as stable as possible ID for an item in the list. It is used to compare whether two items are the same after notifying about the data being changed.

Inherited functions

Link copied to clipboard
open fun getDrawableResolver(): DrawableResolver?

Retrieves the DrawableResolver. If it returns null, no image information will be presented in the indicator. If both getStringResolver and getDrawableResolver return a non-null value, the return value of getStringResolver will be adopted by TtScrollBar first.

Link copied to clipboard
open fun getStringResolver(): StringResolver?

Retrieves the StringResolver. If it returns null, no text information will be presented in the indicator. If both getStringResolver and getDrawableResolver return a non-null value, the return value of getStringResolver will be adopted by TtScrollBar first.

Inheritors

Link copied to clipboard
Link copied to clipboard