OneHandedGestureIndicator
Source set: Android
@Composable
public fun OneHandedGestureIndicator(
gestureIndicatorVisible: Boolean,
onGestureIndicatorFinished: () -> Unit,
modifier: Modifier = Modifier,
gestureIndicatorSize: GestureIndicatorSize = GestureIndicatorSize.Medium,
gestureIndicatorTint: Color = MaterialTheme.colorScheme.onPrimary,
content: @Composable BoxScope.() -> Unit,
)
Parameters
| gestureIndicatorVisible | A boolean flag that triggers the transition from content to the indicator. While true, the content is hidden and the indicator is played. |
| onGestureIndicatorFinished | A lambda function to be called when the gesture indicator animation sequence finishes. Implementation of this lambda must reset gestureIndicatorVisible to false in order to restore the original content. |
| 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 icon. |
| content | The original button content (e.g., Text or Icon) to be displayed when no indicator is active. |