OneHandedGestureHorizontalPageIndicator
Source set: Android
@Composable
public fun OneHandedGestureHorizontalPageIndicator(
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.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. |