value class GesturePriority


Defines the fixed precedence levels for one-handed gesture interception.

This priority system is used by the GestureManager to resolve conflicts when multiple components in a UI hierarchy are eligible to handle a gesture. Because the system cannot automatically determine intent in overlapping areas, developers should assign one of these predefined priority levels to their components to establish a functional gesture hierarchy.

Higher priority values take precedence over lower ones.

This class wraps an internal integer value used to resolve gesture conflicts.

Summary

Public companion properties

GesturePriority

Priority for interactive components like buttons, switches, or chips.

GesturePriority

Priority for general scrollable areas, such as lists, pagers or containers.

GesturePriority

Default priority level.

Public companion properties

Clickable

val ClickableGesturePriority

Priority for interactive components like buttons, switches, or chips.

This is the highest priority tier. It must be used on individual controls to ensure they capture gestures before their containing scrollable or pageable parents.

Scrollable

val ScrollableGesturePriority

Priority for general scrollable areas, such as lists, pagers or containers.

This level but yields to Clickable elements to ensure interactive controls remain accessible within a scrollable parent.

Unspecified

val UnspecifiedGesturePriority

Default priority level.

Used when no specific priority is defined. This level typically yields to any other specified gesture priority.