OneHandedGestureScrollIndicatorState

class OneHandedGestureScrollIndicatorState


State object for OneHandedGestureScrollIndicator used to coordinate visual feedback between a oneHandedGesture modifier and gesture indicators for ScrollIndicator.

Developers should call showIndicator within the onGestureAvailable callback provided by oneHandedGesture modifier to signal that an indication event has occurred. The associated indicator provides an animation block to this state to initiate its animation.

Note: It is not recommended to show multiple gesture indicators for the same OneHandedGestureConfiguration and an error will be thrown if gesture indicators of more than one type are associated with the same OneHandedGestureConfiguration.

Summary

Public functions

suspend Unit

Initiate showing the OneHandedGestureScrollIndicator associated with this OneHandedGestureScrollIndicatorState

Public constructors

OneHandedGestureScrollIndicatorState

Added in 1.7.0-alpha07
@RememberInComposition
OneHandedGestureScrollIndicatorState()

Public functions

showIndicator

Added in 1.7.0-alpha07
suspend fun showIndicator(): Unit

Initiate showing the OneHandedGestureScrollIndicator associated with this OneHandedGestureScrollIndicatorState