---
title: "FractionalThreshold"
description: "A fractional threshold will be at a [fraction] of the way between the two anchors."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** SwipeableDeprecation

```kotlin
@ExperimentalMaterialApi
data class FractionalThreshold(
    /*@FloatRange(from = 0.0, to = 1.0)*/
    private val fraction: Float
) : ThresholdConfig
```


A fractional threshold will be at a `fraction` of the way between the two anchors.

#### Parameters

| | |
| --- | --- |
| fraction | The fraction (between 0 and 1) that the threshold will be at. |




