ProcessTextKey
- Common/All
- Android/JVM
-
android
class ProcessTextKey
Key for context menu items added for the Android PROCESS_TEXT intent actions. You can use this key to filter the PROCESS_TEXT components by calling Modifier.filterTextContextMenuComponents
.
import androidx.compose.foundation.text.BasicTextField import androidx.compose.foundation.text.contextmenu.data.ProcessTextKey import androidx.compose.foundation.text.contextmenu.modifier.filterTextContextMenuComponents import androidx.compose.foundation.text.input.rememberTextFieldState import androidx.compose.ui.Modifier val textFieldState = rememberTextFieldState() BasicTextField( state = textFieldState, modifier = Modifier.filterTextContextMenuComponents( filter = { component -> component.key is ProcessTextKey } ), )