OneHandedGestureScrollIndicator
Source set: Android
@Composable
public fun OneHandedGestureScrollIndicator(
interactionSource: InteractionSource,
state: TransformingLazyColumnState,
modifier: Modifier = Modifier,
scrollIndicatorColors: ScrollIndicatorColors = ScrollIndicatorDefaults.colors(),
gestureIndicatorTint: Color = MaterialTheme.colorScheme.onTertiary,
gestureIndicatorBackgroundColor: Color = MaterialTheme.colorScheme.tertiary,
reverseDirection: Boolean = false,
positionAnimationSpec: AnimationSpec<Float> = ScrollIndicatorDefaults.PositionAnimationSpec,
)
Parameters
| interactionSource | The InteractionSource stream to observe for incoming gesture indications. This is used to determine when the gesture animation sequence should be triggered. |
| state | The state object of the androidx.wear.compose.foundation.lazy.TransformingLazyColumn this indicator is coupled with. |
| modifier | The Modifier to be applied to the scroll indicator. |
| scrollIndicatorColors | ScrollIndicatorColors that will be used to resolve the indicator and track colors for this androidx.wear.compose.material3.ScrollIndicator. |
| 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. |
| reverseDirection | Reverses direction of ScrollIndicator if true. |
| positionAnimationSpec | AnimationSpec for position animation. The Position animation is used for animating changes to the scroll size and position. To disable this animation androidx.compose.animation.core.snap AnimationSpec should be passed instead. |
OneHandedGestureScrollIndicator
Source set: Android
@Composable
public fun OneHandedGestureScrollIndicator(
interactionSource: InteractionSource,
state: ScalingLazyListState,
modifier: Modifier = Modifier,
scrollIndicatorColors: ScrollIndicatorColors = ScrollIndicatorDefaults.colors(),
gestureIndicatorTint: Color = MaterialTheme.colorScheme.onTertiary,
gestureIndicatorBackgroundColor: Color = MaterialTheme.colorScheme.tertiary,
reverseDirection: Boolean = false,
positionAnimationSpec: AnimationSpec<Float> = ScrollIndicatorDefaults.PositionAnimationSpec,
)
Parameters
| interactionSource | The InteractionSource stream to observe for incoming gesture indications. This is used to determine when the gesture animation sequence should be triggered. |
| state | The state object of the androidx.wear.compose.foundation.lazy.ScalingLazyColumn this indicator is coupled with. |
| modifier | The Modifier to be applied to the scroll indicator. |
| scrollIndicatorColors | ScrollIndicatorColors that will be used to resolve the indicator and track colors for this androidx.wear.compose.material3.ScrollIndicator. |
| 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. |
| reverseDirection | Reverses direction of ScrollIndicator if true. |
| positionAnimationSpec | AnimationSpec for position animation. The Position animation is used for animating changes to the scroll size and position. To disable this animation androidx.compose.animation.core.snap AnimationSpec should be passed instead. |