KclipboardManager

Public, platform-agnostic clipboard API for consumers. Implementations must not leak platform-specific types.

Functions

Link copied to clipboard
abstract suspend fun copy(text: String)

Copies the provided text to the system clipboard.

Link copied to clipboard
abstract suspend fun getCopiedText(): String?

Returns the current text from the system clipboard.