# ArcProgressIndicator

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ArcProgressIndicator.composable#ArcProgressIndicator(androidx.compose.ui.Modifier,kotlin.Float,kotlin.Float,androidx.wear.compose.material3.AngularDirection,androidx.wear.compose.material3.ProgressIndicatorColors,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, startAngle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, endAngle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angularDirection: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/AngularDirection, colors: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ProgressIndicatorColors, strokeWidth: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, gapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` Indeterminate Material Design arc progress indicator. |

## Functions

### ArcProgressIndicator

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/ArcProgressIndicator.kt+function:ArcProgressIndicator) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
@Composable
fun ArcProgressIndicator(
    modifier: Modifier = Modifier,
    startAngle: Float = ArcProgressIndicatorDefaults.IndeterminateStartAngle,
    endAngle: Float = ArcProgressIndicatorDefaults.IndeterminateEndAngle,
    angularDirection: AngularDirection = AngularDirection.CounterClockwise,
    colors: ProgressIndicatorColors = ProgressIndicatorDefaults.colors(),
    strokeWidth: Dp = ArcProgressIndicatorDefaults.IndeterminateStrokeWidth,
    gapSize: Dp = ArcProgressIndicatorDefaults.calculateRecommendedGapSize(strokeWidth)
): Unit
```

Indeterminate Material Design arc progress indicator.

Indeterminate progress indicator expresses an unspecified wait time and animates indefinitely. This overload provides a variation over the usual circular spinner by allowing the start and end angles to be specified.

Example of indeterminate arc progress indicator:

```kotlin
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.wear.compose.material3.ArcProgressIndicator
import androidx.wear.compose.material3.ArcProgressIndicatorDefaults
import androidx.wear.compose.material3.ProgressIndicatorDefaults

Box(modifier = Modifier.fillMaxSize()) {
    ArcProgressIndicator(
        modifier =
            Modifier.align(Alignment.Center)
                .size(ArcProgressIndicatorDefaults.recommendedIndeterminateDiameter)
    )
}
```

| Parameters |
|---|---|
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | Modifier to be applied to the ArcProgressIndicator. |
| `startAngle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = ArcProgressIndicatorDefaults.IndeterminateStartAngle` | the start angle of this progress indicator arc (specified in degrees). It is recommended to use `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ArcProgressIndicatorDefaults#IndeterminateStartAngle()`. Measured clockwise from the three o'clock position. |
| `endAngle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = ArcProgressIndicatorDefaults.IndeterminateEndAngle` | the end angle of this progress indicator arc (specified in degrees). It is recommended to use `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ArcProgressIndicatorDefaults#IndeterminateEndAngle()`. Measured clockwise from the three o'clock position. |
| `angularDirection: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/AngularDirection = AngularDirection.CounterClockwise` | Determines whether the animation is in the clockwise or counter-clockwise direction. |
| `colors: https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ProgressIndicatorColors = ProgressIndicatorDefaults.colors()` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ProgressIndicatorColors` that will be used to resolve the indicator and track color for this progress indicator. |
| `strokeWidth: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ArcProgressIndicatorDefaults.IndeterminateStrokeWidth` | The stroke width for the progress indicator. The recommended value is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ArcProgressIndicatorDefaults#IndeterminateStrokeWidth()`. |
| `gapSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp = ArcProgressIndicatorDefaults.calculateRecommendedGapSize(strokeWidth)` | The size (in Dp) of the gap between the ends of the progress indicator and the track. The stroke end caps are not included in this distance. |