Prevent cut/copy/paste in Textfield in Compose

Viewed 626

Is there any way to prevent cut, copy, paste in TextField in Android Jetpack Compose? I tried Modifier's pointerInput but it is not working.

Modifier.pointerInput(Unit) {
            detectTapGestures(onLongPress = {
                Toast.makeText(context, "long pressed", Toast.LENGTH_SHORT).show()
            })
        }

Is there any way to achieve this in Compose?

0 Answers
Related