← Back to Compose UI
SelectionContainer
Component
in
Compose UI
. Since 0.1.0-dev15Overview
Code Examples
Video
Enables text selection for it's direct or indirection children.
Overloads
SelectionContainer
@Suppress("DEPRECATION")
@OptIn(InternalTextApi::class)
@Composable
fun SelectionContainer(modifier: Modifier = Modifier, content: @Composable () -> Unit)
SelectionContainer
@Suppress("ComposableLambdaParameterNaming")
@OptIn(InternalTextApi::class)
@Deprecated("Please use SelectionContainer with no callback")
@InternalTextApi
@Composable
fun SelectionContainer(
/** A [Modifier] for SelectionContainer. */
modifier: Modifier = Modifier,
/** Current Selection status.*/
selection: Selection?,
/** A function containing customized behaviour when selection changes. */
onSelectionChange: (Selection?) -> Unit,
children: @Composable () -> Unit
)