# LinearWavyProgressIndicator

> A determinate wavy progress indicator that shows how far a process has advanced.

## API Reference

### LinearWavyProgressIndicator

> Source set: Android

```kotlin
@Composable
public fun LinearWavyProgressIndicator(
    progress: () -> Float,
    modifier: Modifier = Modifier,
    color: Color = LinearWavyProgressIndicatorDefaults.color,
    trackColor: Color = Color.Unspecified,
    strokeWidth: Dp = LinearWavyProgressIndicatorDefaults.StrokeWidth,
    gapSize: Dp = LinearWavyProgressIndicatorDefaults.GapSize,
    wavelength: Dp = LinearWavyProgressIndicatorDefaults.DeterminateWavelength,
)
```

#### Parameters

| | |
| --- | --- |
| progress | the progress of this indicator, where 0.0 represents no progress and 1.0 represents full progress. Values outside of this range are coerced into the range. Return a non-finite value, such as `Float.NaN`, while the progress is unknown to show an indeterminate indicator. |
| modifier | the [Modifier](https://composables.com/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier/api.md) to be applied to this indicator |
| color | the [Color](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color/api.md) of the progress line |
| trackColor | the [Color](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color/api.md) of the track that the progress line hasn't reached yet. If `Color.Unspecified`, uses a less prominent shade of the content color provided by the nearest [surface](https://composables.com/jetpack-compose/androidx.xr.glimmer/glimmer/composable-functions/surface/api.md). |
| strokeWidth | the thickness of the progress line and the track |
| gapSize | the visible gap between the progress line and the track |
| wavelength | the length of one wave |

### LinearWavyProgressIndicator

> Source set: Android

```kotlin
@Composable
public fun LinearWavyProgressIndicator(
    modifier: Modifier = Modifier,
    color: Color = LinearWavyProgressIndicatorDefaults.color,
    trackColor: Color = Color.Unspecified,
    strokeWidth: Dp = LinearWavyProgressIndicatorDefaults.StrokeWidth,
    gapSize: Dp = LinearWavyProgressIndicatorDefaults.GapSize,
    wavelength: Dp = LinearWavyProgressIndicatorDefaults.IndeterminateWavelength,
)
```

#### Parameters

| | |
| --- | --- |
| modifier | the [Modifier](https://composables.com/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier/api.md) to be applied to this indicator |
| color | the [Color](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color/api.md) of the moving progress lines |
| trackColor | the [Color](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color/api.md) of the track behind the progress lines. If `Color.Unspecified`, uses a less prominent shade of the content color provided by the nearest [surface](https://composables.com/jetpack-compose/androidx.xr.glimmer/glimmer/composable-functions/surface/api.md). |
| strokeWidth | the thickness of the progress lines and the track |
| gapSize | the visible gap between the progress lines and the track |
| wavelength | the length of one wave |

## Code Examples

### LinearWavyProgressIndicatorSample

```kotlin
@Sampled
@Composable
fun LinearWavyProgressIndicatorSample() {
    val progress = 0.5f

    // Animate progress changes, as the indicator doesn't animate between values.
    val animatedProgress by animateFloatAsState(targetValue = progress)
    LinearWavyProgressIndicator(progress = { animatedProgress })
}
```

### IndeterminateLinearWavyProgressIndicatorSample

```kotlin
@Sampled
@Composable
fun IndeterminateLinearWavyProgressIndicatorSample() {
    LinearWavyProgressIndicator()
}
```
