Start native apps faster with the Composables CLI ->
Class

OneHandedGestureAction

Defines the distinct actions of one-handed gestures supported by the system.

Source set: Android
public class OneHandedGestureAction internal constructor(internal val value: Int)

Defines the distinct actions of one-handed gestures supported by the system.

When a gesture is performed, the system first identifies all handlers registered for that specific OneHandedGestureAction. From that set, it identifies the handlers with the highest assigned priority.

Handlers with the highest priority take precedence. It is not recommended to register multiple gestures for the same action and priority (but if that is the case, all of them will be actioned)

Members

Companion

Source set: Android
public companion object

Properties

Primary

Source set: Android
public val Primary: OneHandedGestureAction = OneHandedGestureAction(1)

The primary gesture action.

Depending on the current UI context, this could be a click, selection or scroll action.

Dismiss

Source set: Android
public val Dismiss: OneHandedGestureAction = OneHandedGestureAction(2)

The dismiss gesture action.

Typically used to perform a "go back" action, close a dialog or exit the current screen.