value class GestureAction


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 GestureAction. 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

GestureAction

The dismiss gesture action.

GestureAction

The primary gesture action.

Public companion properties

Dismiss

val DismissGestureAction

The dismiss gesture action.

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

Primary

val PrimaryGestureAction

The primary gesture action.

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