When to use it
Use for short integer adjustments such as counts or durations. This is a numeric control; LumenStepper represents workflow progress. Supply localized action labels and a formatter for units. Rotary routing remains host-owned.
Adjust a bounded integer safely with large wearable controls.
Wear OS availability
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 for short integer adjustments such as counts or durations. This is a numeric control; LumenStepper represents workflow progress. Supply localized action labels and a formatter for units. Rotary routing remains host-owned.
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun WearCountExample() {
var count by remember { mutableIntStateOf(5) }
LumenWearValueStepper("Count", value = count, onValueChange = { count = it },
valueRange = 1..20)
}Reference
The primary shared and platform-specific options exposed by LumenWearValueStepper.
| API | Values or type | Default | Description |
|---|---|---|---|
| label | Native localized text | Required | Names the value. |
| value / onValueChange | Integer binding / value and callback | Required | Publishes changes only after an enabled interaction. |
| valueRange | Inclusive integer bounds | 0..100 | Normalizes reversed bounds and clamps displayed values. |
| step | Integer | 1 | Uses 1 for nonpositive input and clamps each adjustment to the bounds. |
| enabled | Boolean | true | Disables all adjustment paths. |
| decrementLabel / incrementLabel | Native localized text | Decrease / Increase | Names the adjustment actions. |
| formatValue | Integer to String | Numeric string | Formats the visible and accessible value. |
Native behavior
Use for short integer adjustments such as counts or durations. This is a numeric control; LumenStepper represents workflow progress. Supply localized action labels and a formatter for units. Rotary routing remains host-owned.
Names the formatted value and increment/decrement actions, exposes adjustable semantics, and disables unavailable changes.
Shared component