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

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: