---
title: "SwipeToRevealDragScope"
description: "Scope used for suspending drag blocks."
type: "interface"
lastmod: "2026-06-04T09:07:43.969898Z"
---
## API Reference

> Source set: Android

```kotlin
public interface SwipeToRevealDragScope
```

Scope used for suspending drag blocks. Allows setting [RevealState.offset](/jetpack-compose/androidx.wear.compose/compose-material3/classes/RevealState) to a new value.

## Functions

### dragTo

```kotlin
public fun dragTo(newOffset: Float)
```

Assign a new value for an offset value for [RevealState](/jetpack-compose/androidx.wear.compose/compose-material3/classes/RevealState).

#### Parameters

| | |
| --- | --- |
| newOffset | new value for [RevealState.offset](/jetpack-compose/androidx.wear.compose/compose-material3/classes/RevealState). Will be coerced to the boundaries defined by the available reveal targets |
