# SwipeToRevealDragScope

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


```
interface SwipeToRevealDragScope
```

<br />

*** ** * ** ***

Scope used for suspending drag blocks. Allows setting `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealState#offset()` to a new value.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealState#drag(androidx.compose.foundation.MutatePriority,kotlin.coroutines.SuspendFunction1)` | to learn how to start the drag and get the access to this scope. |

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/SwipeToRevealDragScope#dragTo(kotlin.Float)(newOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Assign a new value for an offset value for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealState`. |

## Public functions

### dragTo

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

```
fun dragTo(newOffset: Float): Unit
```

Assign a new value for an offset value for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealState`.

| Parameters |
|---|---|
| `newOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | new value for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealState#offset()`. Will be coerced to the boundaries defined by the available reveal targets |