LinearProgressIndicator

Functions summary

Unit
@Composable
LinearProgressIndicator(
    modifier: GlanceModifier,
    color: ColorProvider,
    backgroundColor: ColorProvider
)

Adds an indeterminate linear progress indicator view to the glance view.

Unit
@Composable
LinearProgressIndicator(
    progress: Float,
    modifier: GlanceModifier,
    color: ColorProvider,
    backgroundColor: ColorProvider
)

Adds a determinate linear progress indicator view to the glance view.

Functions

LinearProgressIndicator

@Composable
fun LinearProgressIndicator(
    modifier: GlanceModifier = GlanceModifier,
    color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider,
    backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider
): Unit

Adds an indeterminate linear progress indicator view to the glance view.

Parameters
modifier: GlanceModifier = GlanceModifier

the modifier to apply to the progress bar

color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider

The color of the progress indicator.

backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider

The color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet.

LinearProgressIndicator

@Composable
fun LinearProgressIndicator(
    progress: Float,
    modifier: GlanceModifier = GlanceModifier,
    color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider,
    backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider
): Unit

Adds a determinate linear progress indicator view to the glance view.

Parameters
progress: Float

of this progress indicator, where 0.0 represents no progress and 1.0 represents full progress

modifier: GlanceModifier = GlanceModifier

the modifier to apply to the progress bar

color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider

The color of the progress indicator.

backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider

The color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet.