Compose Unstyled 2.0 is out! Check the official announcement blog ->
Compose Component

OneHandedGestureVerticalPageIndicator

A vertical page indicator that can temporarily display a gesture indicator to demonstrate how to navigate between pages using one-handed gestures.

OneHandedGestureVerticalPageIndicator

Source set: Android
@Composable
public fun OneHandedGestureVerticalPageIndicator(
    interactionSource: InteractionSource,
    pagerState: PagerState,
    modifier: Modifier = Modifier,
    selectedColor: Color = PageIndicatorDefaults.selectedColor,
    unselectedColor: Color = PageIndicatorDefaults.unselectedColor,
    backgroundColor: Color = PageIndicatorDefaults.backgroundColor,
    gestureIndicatorTint: Color = MaterialTheme.colorScheme.onTertiary,
    gestureIndicatorBackgroundColor: Color = MaterialTheme.colorScheme.tertiary,
)

Parameters

interactionSource The InteractionSource stream to observe for incoming gesture indications. This is used to determine when the gesture animation sequence should be triggered.
pagerState The state of the androidx.wear.compose.foundation.pager.VerticalPager that this indicator represents.
modifier Modifier to be applied to the VerticalPageIndicator
selectedColor The color which will be used for a selected indicator item.
unselectedColor The color which will be used for an unselected indicator item.
backgroundColor The color which will be used for an indicator background.
gestureIndicatorTint The color which will be used for a tint of the gesture animation icon.
gestureIndicatorBackgroundColor The color which will be used for a background behind the gesture animation.

Last updated: