Start native apps faster with the Composables CLI ->
Compose Component

OneHandedGestureClickIndicator

A wrapper that replaces the content to indicate to the user that a gesture action is available.

OneHandedGestureClickIndicator

Source set: Android
@Composable
public fun OneHandedGestureClickIndicator(
    gestureConfiguration: OneHandedGestureConfiguration,
    state: OneHandedGestureClickIndicatorState,
    modifier: Modifier = Modifier,
    gestureIndicatorSize: GestureIndicatorSize = OneHandedGestureDefaults.indicatorSize,
    gestureIndicatorTint: Color = OneHandedGestureDefaults.indicatorTint,
    content: @Composable () -> Unit,
)

Parameters

gestureConfiguration the specification for the one-handed gesture
state The state object used to synchronize the indicator visibility.
modifier The Modifier to be applied to the OneHandedGestureClickIndicator layout.
gestureIndicatorSize The size constraints for the gesture indicator icon.
gestureIndicatorTint The color which will be used for a tint of the gesture animation
content The original component content (e.g., Text or Icon) to be displayed when no indicator is active.

Last updated: