When to use it
Use stable record keys. Transient gesture state resets before callbacks and never restores an operation. The application owns confirmation, undo, removal, and persistence.
Expose logical start and end row actions with gesture alternatives.
Native example
Use stable record keys. Transient gesture state resets before callbacks and never restores an operation. The application owns confirmation, undo, removal, and persistence.
LumenSwipeActions(
startAction = LumenSwipeAction("Favorite", ::favorite),
endAction = LumenSwipeAction("Delete", ::requestDeleteConfirmation, destructive = true)
) { LumenText("Quarterly report") }Reference
The primary shared and platform-specific options exposed by LumenSwipeActions.
| API | Values or type | Default | Description |
|---|---|---|---|
| startAction / endAction | LumenSwipeAction? | null | Provides a non-empty label, callback, enabled flag, and optional destructive intent. |
| enabled | Boolean | true | Disables gestures, buttons, and custom actions while busy. |
| modifier | Modifier | Modifier | Applies outer layout. |
| content | @Composable () -> Unit | Required | Provides native record content. |
Native behavior
Use stable record keys. Transient gesture state resets before callbacks and never restores an operation. The application owns confirmation, undo, removal, and persistence.
Provides RTL-aware gestures, named custom accessibility actions, and visible keyboard-usable action buttons.