-
- All Implemented Interfaces:
-
androidx.compose.foundation.gestures.ScrollableState,com.patrykandpatrick.vico.core.scroll.ScrollListenerHost
public final class ChartScrollState implements ScrollableState, ScrollListenerHostHouses information on a Chart’s scroll state. Allows for programmatic scrolling.
-
-
Field Summary
Fields Modifier and Type Field Description private Floatvalueprivate FloatmaxValueprivate final BooleanisScrollInProgressprivate final BooleancanScrollBackwardprivate final BooleancanScrollForward
-
Constructor Summary
Constructors Constructor Description ChartScrollState()
-
Method Summary
Modifier and Type Method Description final FloatgetValue()final UnitsetValue(Float value)final FloatgetMaxValue()final UnitsetMaxValue(Float maxValue)BooleangetIsScrollInProgress()BooleangetCanScrollBackward()BooleangetCanScrollForward()Unitscroll(MutatePriority scrollPriority, SuspendFunction1<ScrollScope, Unit> block)FloatdispatchRawDelta(Float delta)UnitregisterScrollListener(ScrollListener scrollListener)UnitremoveScrollListener(ScrollListener scrollListener)-
-
Method Detail
-
getMaxValue
final Float getMaxValue()
-
setMaxValue
final Unit setMaxValue(Float maxValue)
-
getIsScrollInProgress
Boolean getIsScrollInProgress()
-
getCanScrollBackward
Boolean getCanScrollBackward()
-
getCanScrollForward
Boolean getCanScrollForward()
-
scroll
Unit scroll(MutatePriority scrollPriority, SuspendFunction1<ScrollScope, Unit> block)
-
dispatchRawDelta
Float dispatchRawDelta(Float delta)
-
registerScrollListener
Unit registerScrollListener(ScrollListener scrollListener)
-
removeScrollListener
Unit removeScrollListener(ScrollListener scrollListener)
-
-
-
-