Composable Function

defaultDragHandleSemantics

This function sets up the default semantics of pane expansion drag handles with the given PaneExpansionState.

defaultDragHandleSemantics

Deprecated

Just omit the semanticsProperties parameter when using Modifier.paneExpansionDraggable to set up the default semantics

Source set: Common
@ExperimentalMaterial3AdaptiveApi
@Composable
fun PaneExpansionState.defaultDragHandleSemantics(): SemanticsPropertyReceiver.() -> Unit

This function sets up the default semantics of pane expansion drag handles with the given PaneExpansionState. It will provide suitable contentDescription as well as onClick function to move the pane expansion among anchors that can be operated via accessibility services.

It's supposed to be used with a PaneScaffoldScope.paneExpansionDraggable modifier, or a plain semantics modifier associated with a drag handle composable.

Last updated: