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

OneHandedGestureIndicator

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

OneHandedGestureIndicator

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

Parameters

gestureConfiguration The configuration of the gesture associated with this indicator.
indicatorState The state object used to synchronize the indicator visibility.
modifier The Modifier to be applied to the OneHandedGestureIndicator 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: