# PositionIndicatorDefaults

# PositionIndicatorDefaults

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/PositionIndicator.kt+class:androidx.wear.compose.material.PositionIndicatorDefaults)  
Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.4.0)

<br />

```
object PositionIndicatorDefaults
```

<br />

*** ** * ** ***

Contains the default values used for[PositionIndicator](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/package-summary#PositionIndicator(androidx.compose.foundation.ScrollState,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.animation.core.AnimationSpec,androidx.compose.animation.core.AnimationSpec,androidx.compose.animation.core.AnimationSpec)).

## Summary

|                                                                                       ### Public properties                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AnimationSpec](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec)`<`[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`>` | [positionAnimationSpec](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/PositionIndicatorDefaults#positionAnimationSpec()) [AnimationSpec](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec)used for position animation.                               |
| [AnimationSpec](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec)`<`[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`>` | [visibilityAnimationSpec](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/PositionIndicatorDefaults#visibilityAnimationSpec()) [AnimationSpec](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec)used for visibility (fade-in and fade-out) animations. |

## Public properties

### positionAnimationSpec

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

```
val positionAnimationSpec: AnimationSpec<Float>
```

[AnimationSpec](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec)used for position animation. To disable this animation, pass[snap](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/package-summary#snap(kotlin.Int))AnimationSpec instead  

### visibilityAnimationSpec

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

```
val visibilityAnimationSpec: AnimationSpec<Float>
```

[AnimationSpec](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec)used for visibility (fade-in and fade-out) animations. To disable this animation, pass[snap](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/package-summary#snap(kotlin.Int))AnimationSpec instead