RadialMenuWrapper

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).

onItemSelected

Callback fired when an item is selected from the radial menu.

enableEdgeHugLayout

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).

onTap

Callback fired when the wrapped content is tapped.

onDoubleTap

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.