ListItemViewModel

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 ImageSource. If it returns null, no image information will be presented in the indicator. If both getStringResolver and getImageSource 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 getImageSource return a non-null value, the return value of getStringResolver will be adopted by TtScrollBar first.