IndicatorContentProvider

interface IndicatorContentProvider

An interface used by TtScrollBar, based on the scrolling position, to retrieve extra information. The scroll bar indicator, an extra view attached to TtScrollBar's parent view, is used to present this information.

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