# LevelIndicatorDefaults

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/LevelIndicator.kt+class:androidx.wear.compose.material3.LevelIndicatorDefaults) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
object LevelIndicatorDefaults
```

<br />

*** ** * ** ***

Contains the default values used for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorDefaults#colors()()` Creates a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorColors` that represents the default colors used in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorDefaults#colors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( indicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, trackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledIndicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Creates a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorColors` with modified colors used in `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorDefaults#StrokeWidth()` The default stroke width for the indicator and track strokes |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorDefaults#SweepAngle()` The sweep angle for the curved `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`, measured up to the centers of the stroke caps. |

## Public functions

### colors

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

```
@Composable
fun colors(): LevelIndicatorColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorColors` that represents the default colors used in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`.

### colors

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

```
@Composable
fun colors(
    indicatorColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified,
    disabledIndicatorColor: Color = Color.Unspecified,
    disabledTrackColor: Color = Color.Unspecified
): LevelIndicatorColors
```

Creates a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/LevelIndicatorColors` with modified colors used in `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`.

| Parameters |
|---|---|
| `indicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The indicator color. |
| `trackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The track color. |
| `disabledIndicatorColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The disabled indicator color. |
| `disabledTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The disabled track color. |

## Public properties

### StrokeWidth

```
val StrokeWidth: Dp
```

The default stroke width for the indicator and track strokes

### SweepAngle

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

```
val SweepAngle: Float
```

The sweep angle for the curved `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#LevelIndicator(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material3.LevelIndicatorColors,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Boolean)`, measured up to the centers of the stroke caps. The default value of 72 degrees equates to 20% of the circumference, i.e. 360/5.