copy

abstract suspend fun copy(text: String)

Copies the provided text to the system clipboard.

Parameters

text

Text to copy. Must not be null. Note: this is a suspend function because some Compose clipboard APIs are suspend.