# SwipeProgress

Artifact: [androidx.compose.material:material](https://developer.android.com/jetpack/androidx/releases/compose-material) [View Source](https://cs.android.com/search?q=file:androidx/compose/material/Swipeable.kt+class:androidx.compose.material.SwipeProgress) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0) Deprecated in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.6.0) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalMaterialApi
  class SwipeProgress<T : Any?>
  ```

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

Collects information about the ongoing swipe or animation in `https://developer.android.com/reference/kotlin/androidx/compose/material/swipeable.modifier#(androidx.compose.ui.Modifier).swipeable(androidx.compose.material.SwipeableState,kotlin.collections.Map,androidx.compose.foundation.gestures.Orientation,kotlin.Boolean,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function2,androidx.compose.material.ResistanceConfig,androidx.compose.ui.unit.Dp)`.

To access this information, use `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeableState#progress()`.

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> [SwipeProgress](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#SwipeProgress(kotlin.Any,kotlin.Any,kotlin.Float))(from: T, to: T, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[equals](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#equals(kotlin.Any))(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` **This function is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[hashCode](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#hashCode())()` **This function is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `[toString](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#toString())()` **This function is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#fraction()` **This property is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |
| `T` | `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#from()` **This property is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |
| `T` | `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#to()` **This property is deprecated.** Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. | Cmn |

## Public constructors

### SwipeProgress

Cmn

```
<T : Any?> [SwipeProgress](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#SwipeProgress(kotlin.Any,kotlin.Any,kotlin.Float))(from: T, to: T, fraction: Float)
```

> [!CAUTION]
> **This function is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

| Parameters |
|---|---|
| `from: T` | The state corresponding to the anchor we are moving away from. |
| `to: T` | The state corresponding to the anchor we are moving towards. |
| `fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The fraction that the current position represents between `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#from()` and `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#to()`. Must be between `0` and `1`. |

## Public functions

### equals

Cmn

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#equals(kotlin.Any))(other: Any?): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

### hashCode

Cmn

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#hashCode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

### toString

Cmn

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#toString())(): String
```

> [!CAUTION]
> **This function is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

## Public properties

### fraction

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0) Deprecated in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.6.0)

```
val fraction: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

The fraction that the current position represents between `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#from()` and `https://developer.android.com/reference/kotlin/androidx/compose/material/SwipeProgress#to()`. Must be between `0` and `1`.

### from

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0) Deprecated in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.6.0)

```
val from: T
```

> [!CAUTION]
> **This property is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

The state corresponding to the anchor we are moving away from.

### to

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0) Deprecated in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.6.0)

```
val to: T
```

> [!CAUTION]
> **This property is deprecated.**   
> Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.

The state corresponding to the anchor we are moving towards.