pastePlainText

expect fun pastePlainText(block: (String) -> Unit)

Retrieves the system clipboard's contents, and if it contains plain text, then block is passed the text. Otherwise block is not executed. Within the JVM this will happen immediately, but within a web browser, it will be delayed (as it is implemented using a Promise).

actual fun pastePlainText(block: (String) -> Unit)
actual fun pastePlainText(block: (String) -> Unit)