# FixedThreshold

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


```
@ExperimentalWearMaterialApi
data class FixedThreshold : ThresholdConfig
```

<br />

*** ** * ** ***

A fixed threshold will be at an `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/FixedThreshold#(androidx.compose.ui.unit.Dp)` away from the first anchor.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/FixedThreshold#FixedThreshold(androidx.compose.ui.unit.Dp)(offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density.https://developer.android.com/reference/kotlin/androidx/wear/compose/material/FixedThreshold#(androidx.compose.ui.unit.Density).computeThreshold(kotlin.Float,kotlin.Float)(fromValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, toValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Compute the value of the threshold (in pixels), once the values of the anchors are known. |

## Public constructors

### FixedThreshold

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

```
FixedThreshold(offset: Dp)
```

| Parameters |
|---|---|
| `offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | The offset (in dp) that the threshold will be at. |

## Public functions

### Density.computeThreshold

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/Swipeable.kt+function:computeThreshold)

```
open fun Density.computeThreshold(fromValue: Float, toValue: Float): Float
```

Compute the value of the threshold (in pixels), once the values of the anchors are known.