Start native apps faster with the Composables CLI ->
Function

isCutAllowed

Whether the cut operation is allowed in the current state.

isCutAllowed

Source set: Common
inline fun isCutAllowed(): Boolean

Whether the cut operation is allowed in the current state. It checks the essential conditions:

  • the selection must be not collapsed
  • the text field type is not password
  • the text field is editable

Also, see cutWithResult