Start native apps faster with the Composables CLI ->
Function

canShowPasteMenuItem

Whether a paste operation can execute now and have a meaningful effect.

canShowPasteMenuItem

Source set: Common
fun canShowPasteMenuItem(): Boolean

Whether a paste operation can execute now and have a meaningful effect. The paste operation requires the text field to be editable, and the clipboard manager to have content to paste.

This method relies on the clip entry in this TextFieldSelectionState to be up to date via calling updateClipboardEntry.