public value class GesturePriority private constructor(internal val value: Int)
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.
Companion Object
Properties
public val Unspecified: GesturePriority
Default priority level.
Used when no specific priority is defined. This level typically yields to any other specified gesture priority.
public val Scrollable: GesturePriority
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.
public val Clickable: GesturePriority
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.