OneHandedGestureHorizontalPageIndicator
Source set: Android
@Composable
public fun OneHandedGestureHorizontalPageIndicator(
gestureIndicatorVisible: Boolean,
onGestureIndicatorFinished: () -> Unit,
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
| gestureIndicatorVisible | A boolean flag that triggers the gesture indicator animation. While true, the standard scroll indicator is transformed into the gesture indicator. |
| onGestureIndicatorFinished | A lambda function to be called when the gesture indicator animation sequence finishes. Implementation of this lambda must reset gestureIndicatorVisible to false in order to restore the original content. |
| pagerState | The state of the androidx.wear.compose.foundation.pager.HorizontalPager that this indicator represents. |
| modifier | Modifier to be applied to the HorizontalPageIndicator |
| 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. |