OneHandedGestureConfiguration

class OneHandedGestureConfiguration


Represents the persistent specification for a one-handed gesture.

Summary

Public constructors

OneHandedGestureConfiguration(
    action: GestureAction,
    key: String,
    priority: GesturePriority
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

GestureAction

The GestureAction associated with this gesture specification.

String

A unique identifier for this gesture instance.

GesturePriority

The priority value; higher values take precedence if multiple handlers are registered for the same action.

Public constructors

OneHandedGestureConfiguration

Added in 1.7.0-alpha06
OneHandedGestureConfiguration(
    action: GestureAction,
    key: String,
    priority: GesturePriority = GesturePriority.Unspecified
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

action

val actionGestureAction

The GestureAction associated with this gesture specification.

key

Added in 1.7.0-alpha06
val keyString

A unique identifier for this gesture instance. This ID allows the system to track user interactions - for example, to mute gesture indicators that have been frequently shown or successfully performed, in accordance with user preferences. If the same key is reused across multiple gestures, they will share a common interaction history (such as frequency-based gesture indicator display logic). Note that this only affects the presentation of the UI; the underlying logic and handling remain independent for each instance.

priority

val priorityGesturePriority

The priority value; higher values take precedence if multiple handlers are registered for the same action. 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).