OneHandedGestureAction

value class OneHandedGestureAction


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)

Summary

Public companion properties

OneHandedGestureAction

The dismiss gesture action.

OneHandedGestureAction

The primary gesture action.

Public companion properties

Dismiss

val DismissOneHandedGestureAction

The dismiss gesture action.

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

Primary

val PrimaryOneHandedGestureAction

The primary gesture action.

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