Compose Unstyled 2.0 is out! Check the official announcement blog ->
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(
    interactionSource: InteractionSource,
    modifier: Modifier = Modifier,
    gestureIndicatorSize: GestureIndicatorSize = GestureIndicatorSize.Medium,
    gestureIndicatorTint: Color = MaterialTheme.colorScheme.onPrimary,
    content: @Composable BoxScope.() -> Unit,
)

Parameters

interactionSource The InteractionSource stream to observe for incoming gesture indications. This is used to determine when and which gesture indicator should be displayed.
modifier The Modifier to be applied to the OneHandedGestureIndicator layout.
gestureIndicatorSize The size constraints for the gesture indicator icon, defaulting to GestureIndicatorSize.Medium.
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: