Class

ProcessTextKey

Key for context menu items added for the Android PROCESS_TEXT intent actions.

FilterProcessTextItemsInTextContextMenu

@Sampled
@Composable
fun FilterProcessTextItemsInTextContextMenu() {
    val textFieldState = rememberTextFieldState()
    BasicTextField(
        state = textFieldState,
        modifier =
            Modifier.filterTextContextMenuComponents(
                filter = { component -> component.key is ProcessTextKey }
            ),
    )
}
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: