Radial Menu Wrapper
fun RadialMenuWrapper(items: List<RadialMenuItem>, onItemSelected: (RadialMenuItem) -> Unit, enableEdgeHugLayout: Boolean = false, onTap: () -> Unit = {}, onDoubleTap: () -> Unit = {}, modifier: Modifier = Modifier, content: @Composable () -> Unit)(source)
A wrapper composable that detects long presses and shows the radial menu overlay.
Since
1.0.0
Parameters
items
The items to display. Supports 2-8 items (more is allowed but may degrade UX).
on Item Selected
Callback fired when an item is selected from the radial menu.
enable Edge Hug Layout
When true, items arrange in an L-shape along screen edges when long-pressed in a corner with 4+ items. Defaults to false (pure radial layout).
on Tap
Callback fired when the wrapped content is tapped.
on Double Tap
Callback fired when the wrapped content is double-tapped.
modifier
Optional modifier for the wrapper box.
content
The content to be wrapped and monitored for gestures.