# OneHandedGestureConfiguration

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration.kt+class:androidx.wear.compose.material3.onehandedgesture.OneHandedGestureConfiguration) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.7.0)


```
class OneHandedGestureConfiguration
```

<br />

*** ** * ** ***

Represents the persistent specification for a one-handed gesture.

When creating `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration` outside of tests, it is recommended to use the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/rememberOneHandedGestureConfiguration.composable#rememberOneHandedGestureConfiguration(androidx.wear.compose.material3.onehandedgesture.OneHandedGestureAction,kotlin.String,androidx.wear.compose.material3.onehandedgesture.OneHandedGesturePriority)` function.

**Note:** It is not recommended to register multiple gestures for the same action and priority. If multiple gestures are registered with identical actions and priorities, all of them will be actioned simultaneously.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#OneHandedGestureConfiguration(androidx.wear.compose.material3.onehandedgesture.OneHandedGestureAction,kotlin.String,androidx.wear.compose.material3.onehandedgesture.OneHandedGesturePriority)( action: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureAction, gestureId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, priority: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGesturePriority )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureAction` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#action()` The `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureAction` associated with this gesture specification. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#gestureId()` A unique identifier for this gesture instance. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGesturePriority` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#priority()` The priority value; higher values take precedence if multiple handlers are registered for the same `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#action()`. |

## Public constructors

### OneHandedGestureConfiguration

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.7.0)

```
OneHandedGestureConfiguration(
    action: OneHandedGestureAction,
    gestureId: String,
    priority: OneHandedGesturePriority = OneHandedGesturePriority.Unspecified
)
```

## Public functions

### equals

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

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### action

```
val action: OneHandedGestureAction
```

The `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureAction` associated with this gesture specification.

### gestureId

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.7.0)

```
val gestureId: String
```

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 ID 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 priority: OneHandedGesturePriority
```

The priority value; higher values take precedence if multiple handlers are registered for the same `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration#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).