Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
Data displayWear OS

Wearable progress

Surround wearable content with clamped semantic circular progress.

Public APILumenWearProgressRingWear OS / Compose

Wear OS availability

Use the dedicated Wear artifact

Add com.santi020k:lumen-compose-wear:6.0.0 to your Wear OS module and import this component from com.santi020k.lumen. Wrap content in LumenWearTheme, which defaults to dark appearance and uses LumenThemeScope for tokens, named themes, typography, shapes, and androidx.compose.material3.MaterialTheme roles. Your separate Wear Material provider remains application-owned. Wear UI primitives accept a Compose modifier with Modifier as its default.

The release plan targets this version; confirm Maven Central availability before pinning it.

Native example

Use Wearable progress

Use for short at-a-glance progress. On watchOS, isLuminanceReduced hides both ring strokes while preserving center content and its accessibility value. Wear OS ambient presentation, background work, update scheduling, and sensitive-content policy remain application-owned.

Wearable progress rendered in the Wear OS emulator Lumen playground
Captured exampleWear OS emulator
kotlin
LumenWearProgressRing(value = elapsed, maximum = threshold) {
    TimerLabel()
}

Reference

Public API

The primary shared and platform-specific options exposed by LumenWearProgressRing.

APIValues or typeDefaultDescription
valueFloatRequiredClamps current progress to zero through maximum; non-finite values become zero.
maximumFloat1fDefines the upper bound. Non-positive or non-finite values use 1.
toneLumenWearToneLumenWearTone.BrandApplies brand, accent, success, warning, danger, or neutral progress color.
lineWidthDp4.dpClamps the stroke to 2–12 native display units; non-finite values use 4.
content@Composable BoxScope.() -> UnitRequiredProvides application-owned center content. Give the content or its container a size for the ring.

Native behavior

Design and accessibility

When to use it

Use for short at-a-glance progress. On watchOS, isLuminanceReduced hides both ring strokes while preserving center content and its accessibility value. Wear OS ambient presentation, background work, update scheduling, and sensitive-content policy remain application-owned.

Accessibility

Wear OS exposes the clamped value and maximum through progressBarRangeInfo and merges center content semantics. watchOS names the element Progress, exposes a percentage value, and preserves the center content as contained children.

Shared component

Available on other platforms

Apple / SwiftUI
Android docsCompose module