# OneHandedGestureScrollIndicatorState

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/OneHandedGestureScrollIndicator.kt+class:androidx.wear.compose.material3.onehandedgesture.OneHandedGestureScrollIndicatorState) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.7.0)


```
class OneHandedGestureScrollIndicatorState
```

<br />

*** ** * ** ***

State object for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureScrollIndicator.composable#OneHandedGestureScrollIndicator(androidx.wear.compose.material3.onehandedgesture.OneHandedGestureConfiguration,androidx.wear.compose.material3.onehandedgesture.OneHandedGestureScrollIndicatorState,androidx.wear.compose.foundation.lazy.TransformingLazyColumnState,androidx.compose.ui.Modifier,androidx.wear.compose.material3.ScrollIndicatorColors,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Boolean,androidx.compose.animation.core.AnimationSpec)` used to coordinate visual feedback between a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/oneHandedGesture.modifier#(androidx.compose.ui.Modifier).oneHandedGesture(androidx.wear.compose.material3.onehandedgesture.OneHandedGestureConfiguration,kotlin.String,kotlin.Long,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0,kotlin.coroutines.SuspendFunction0)` modifier and gesture indicators for ScrollIndicator.

Developers should call `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureScrollIndicatorState#showIndicator()` within the `onGestureAvailable` callback provided by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/oneHandedGesture.modifier#(androidx.compose.ui.Modifier).oneHandedGesture(androidx.wear.compose.material3.onehandedgesture.OneHandedGestureConfiguration,kotlin.String,kotlin.Long,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0,kotlin.coroutines.SuspendFunction0)` modifier to signal that an indication event has occurred. The associated indicator provides an animation block to this state to initiate its animation.

**Note:** It is not recommended to show multiple gesture indicators for the same `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration` and an error will be thrown if gesture indicators of more than one type are associated with the same `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureConfiguration`.

## Summary

| ### Public constructors |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/annotation/RememberInComposition https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureScrollIndicatorState#OneHandedGestureScrollIndicatorState()()` |

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/onehandedgesture/OneHandedGestureScrollIndicatorState#showIndicator()()` Initiate showing the `OneHandedGestureScrollIndicator` associated with this `OneHandedGestureScrollIndicatorState` |

## Public constructors

### OneHandedGestureScrollIndicatorState

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

```
@RememberInComposition
OneHandedGestureScrollIndicatorState()
```

## Public functions

### showIndicator

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

```
suspend fun showIndicator(): Unit
```

Initiate showing the `OneHandedGestureScrollIndicator` associated with this `OneHandedGestureScrollIndicatorState`