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

# LinearWavyProgressIndicator

## Functions summary

|---|---|
| `Unit` | `@Composable LinearWavyProgressIndicator( modifier: Modifier, color: Color, trackColor: Color, strokeWidth: Dp, gapSize: Dp, wavelength: Dp )` An indeterminate wavy progress indicator that shows that a process is ongoing, without indicating how far it has advanced. |
| `Unit` | `@Composable LinearWavyProgressIndicator( progress: () -> Float, modifier: Modifier, color: Color, trackColor: Color, strokeWidth: Dp, gapSize: Dp, wavelength: Dp )` A determinate wavy progress indicator that shows how far a process has advanced. |

## Functions

### LinearWavyProgressIndicator

Artifact: [androidx.xr.glimmer:glimmer](https://developer.android.com/jetpack/androidx/releases/xr-glimmer.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/xr/glimmer/LinearWavyProgressIndicator.kt+function:LinearWavyProgressIndicator) Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/xr-glimmer.md.txt#1.0.0-alpha23)

```
@Composable
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
): Unit
```

An indeterminate wavy progress indicator that shows that a process is ongoing, without indicating how far it has advanced.

The progress lines follow a wave that moves by one `wavelength` per second, while the track stays straight. The wave, including its stroke, fills the indicator's height.

```kotlin
import androidx.xr.glimmer.LinearWavyProgressIndicator

LinearWavyProgressIndicator()
```

| Parameters |
|---|---|
| `modifier: Modifier = Modifier` | the `Modifier` to be applied to this indicator |
| `color: Color = LinearWavyProgressIndicatorDefaults.color` | the `Color` of the moving progress lines |
| `trackColor: Color = Color.Unspecified` | the `Color` of the track behind the progress lines. If `Color.Unspecified`, uses a less prominent shade of the content color provided by the nearest `surface`. |
| `strokeWidth: Dp = LinearWavyProgressIndicatorDefaults.StrokeWidth` | the thickness of the progress lines and the track |
| `gapSize: Dp = LinearWavyProgressIndicatorDefaults.GapSize` | the visible gap between the progress lines and the track |
| `wavelength: Dp = LinearWavyProgressIndicatorDefaults.IndeterminateWavelength` | the length of one wave |

### LinearWavyProgressIndicator

Artifact: [androidx.xr.glimmer:glimmer](https://developer.android.com/jetpack/androidx/releases/xr-glimmer.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/xr/glimmer/LinearWavyProgressIndicator.kt+function:LinearWavyProgressIndicator) Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/xr-glimmer.md.txt#1.0.0-alpha23)

```
@Composable
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
): Unit
```

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

The progress line follows a wave that moves by one `wavelength` per second, while the track stays straight. The wave, including its stroke, fills the indicator's height and flattens when the progress is close to empty or full. There is no animation between `progress` values; animate the value before passing it in if needed.

```kotlin
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.runtime.getValue
import androidx.xr.glimmer.LinearWavyProgressIndicator

val progress = 0.5f

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

| Parameters |
|---|---|
| `progress: () -> Float` | 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: Modifier = Modifier` | the `Modifier` to be applied to this indicator |
| `color: Color = LinearWavyProgressIndicatorDefaults.color` | the `Color` of the progress line |
| `trackColor: Color = Color.Unspecified` | the `Color` 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`. |
| `strokeWidth: Dp = LinearWavyProgressIndicatorDefaults.StrokeWidth` | the thickness of the progress line and the track |
| `gapSize: Dp = LinearWavyProgressIndicatorDefaults.GapSize` | the visible gap between the progress line and the track |
| `wavelength: Dp = LinearWavyProgressIndicatorDefaults.DeterminateWavelength` | the length of one wave |