Function

isCopyAllowed

Whether the copying is allowed in the current state.

isCopyAllowed

Source set: Common
fun isCopyAllowed(): Boolean

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

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

Also, see copyWithResult

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: