> Documentation index: https://developer.android.com/reference/llms.txt

# FollowThresholds

Artifact: [androidx.xr.compose:compose](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/subspace/animation/follow/FollowThresholds.kt+class:androidx.xr.compose.subspace.animation.follow.FollowThresholds) Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)


```
@ExperimentalFollowingSubspaceApi
class FollowThresholds
```

<br />

*** ** * ** ***

Defines a movement threshold range for `FollowMode` within which follow motion is not triggered.

When the following entity is within these thresholds relative to the target pose, it remains stationary. Once the target moves beyond a threshold along any dimension, follow motion begins.

Setting these values low (but above zero) helps filter out micro-movements while the user is relatively stationary. Setting the values high allows the content to remain anchored until the user makes a significant movement, such as relocating to another area.

## Summary

| ### Public companion properties |
|---|---|
| `FollowThresholds` | `Zero` |

| ### Public constructors |
|---|
| `FollowThresholds( translationMeters: Float, pitchDegrees: Float, yawDegrees: Float, rollDegrees: Float )` |

| ### Public functions |
|---|---|
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |
| `open String` | `toString()` |

| ### Public properties |
|---|---|
| `Float` | `pitchDegrees` The pitch rotation threshold, in degrees, required to trigger follow motion. |
| `Float` | `rollDegrees` The roll rotation threshold, in degrees, required to trigger follow motion. |
| `Float` | `translationMeters` The translation threshold, in meters, required to trigger follow motion. |
| `Float` | `yawDegrees` The yaw rotation threshold, in degrees, required to trigger follow motion. |

## Public companion properties

### Zero

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)

```
val Zero: FollowThresholds
```

## Public constructors

### FollowThresholds

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)

```
FollowThresholds(
    translationMeters: Float = 0.0f,
    pitchDegrees: Float = 0.0f,
    yawDegrees: Float = 0.0f,
    rollDegrees: Float = 0.0f
)
```

| Parameters |
|---|---|
| `translationMeters: Float = 0.0f` | The translation threshold, in meters, required to trigger follow motion. |
| `pitchDegrees: Float = 0.0f` | The pitch rotation threshold, in degrees, required to trigger follow motion. |
| `yawDegrees: Float = 0.0f` | The yaw rotation threshold, in degrees, required to trigger follow motion. |
| `rollDegrees: Float = 0.0f` | The roll rotation threshold, in degrees, required to trigger follow motion. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### pitchDegrees

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)

```
val pitchDegrees: Float
```

The pitch rotation threshold, in degrees, required to trigger follow motion.

### rollDegrees

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)

```
val rollDegrees: Float
```

The roll rotation threshold, in degrees, required to trigger follow motion.

### translationMeters

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)

```
val translationMeters: Float
```

The translation threshold, in meters, required to trigger follow motion.

### yawDegrees

Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/xr-compose.md.txt#1.0.0-rc01)

```
val yawDegrees: Float
```

The yaw rotation threshold, in degrees, required to trigger follow motion.