androidx.compose.foundation.text.selection
Classes
TextSelectionColors |
Represents the colors used for text selection by text and text field components. |
Cmn
|
Composables
DisableSelection |
Disables text selection for its direct or indirect children. |
Cmn
|
SelectionContainer |
Enables text selection for its direct or indirect children. |
Cmn
|
Top-level properties summary
ProvidableCompositionLocal<CoroutineContext> |
The |
android
|
ProvidableCompositionLocal<TextSelectionColors> |
CompositionLocal used to change the |
Cmn
|
Top-level properties
LocalTextClassifierCoroutineContext
val LocalTextClassifierCoroutineContext: ProvidableCompositionLocal<CoroutineContext>
The CoroutineContext used for launching TextClassifier operations within the selection features.
This context is expected to be associated with a worker thread to ensure that text classification, which can be a time-consuming operation, does not block the UI thread. Providing a CoroutineContext not backed by a worker thread may lead to performance issues or unexpected behavior with TextClassifier.
LocalTextSelectionColors
val LocalTextSelectionColors: ProvidableCompositionLocal<TextSelectionColors>
CompositionLocal used to change the TextSelectionColors used by text and text field components in the hierarchy.