Composable Function

DisableSelection

Disables text selection for its direct or indirect children.

DisableSelection

Source set: Common
@Composable
public fun DisableSelection(content: @Composable () -> Unit)

Disables text selection for its direct or indirect children. To use this, simply add this to wrap one or more text composables.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: