Skip to main content

CamoProgress

A linear progress indicator, as wide as its parent allows. progress == null is indeterminate (loading); a value is clamped to 0f..1f (an upload at 40%). tone colors a failing upload; label names it ("Uploading photo"). Value changes aren't announced as they happen: announce the milestones ("Upload complete").

API: CamoProgressBar​

public fun CamoProgressBar(
modifier: Modifier = Modifier,
progress: Float? = null,
tone: Tone = Tone.Default,
label: String? = null,
)
NameTypeDefault
modifierModifierModifier
progressFloat?null
toneToneTone.Default
labelString?null

API: CamoProgressCircle​

public fun CamoProgressCircle(
modifier: Modifier = Modifier,
progress: Float? = null,
tone: Tone = Tone.Default,
size: ProgressSize = ProgressSize.Medium,
label: String? = null,
)
NameTypeDefault
modifierModifierModifier
progressFloat?null
toneToneTone.Default
sizeProgressSizeProgressSize.Medium
labelString?null
Design notes

Why CamoProgress works this way, its states and its edge cases: contributor docs.