Start native apps faster with the Composables CLI ->
Class

OneHandedGesturePageIndicatorState

State object for OneHandedGestureHorizontalPageIndicator and OneHandedGestureVerticalPageIndicator, used to coordinate visual feedback between a oneHandedGesture modifier and a gesture indicators for HorizontalPageIndicator and VerticalPageIndicator.

Source set: Android
public class OneHandedGesturePageIndicatorState @RememberInComposition constructor()

State object for OneHandedGestureHorizontalPageIndicator and OneHandedGestureVerticalPageIndicator, used to coordinate visual feedback between a oneHandedGesture modifier and a gesture indicators for HorizontalPageIndicator and VerticalPageIndicator.

Developers should call OneHandedGesturePageIndicatorState.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.

Functions

showIndicator

public suspend fun showIndicator()

Initiate showing the gesture indicator associated with this OneHandedGesturePageIndicatorState

Last updated: