ListItemViewModel

The ViewModel for an item in a TtListRecyclerView.

Types

Link copied to clipboard

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

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

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