class Clipboard
source · line 12public
public class Clipboard internal constructor(private val owner: ApplicationOwner)
System clipboard text with shared ownership and standard media type mapping.
function writeText
source · line 23public
public fun writeText(text: String): Unit
parameter text
source · line 23public
text: String
function readText
source · line 14public
public fun readText(mediaType: String = "text/plain"): String?
Reads a text representation; absence and an existing empty string are distinct.
parameter mediaType
source · line 14public
mediaType: String = "text/plain"
function writeTexts
source · line 28public
public fun writeTexts(representations: List<ClipboardText>): Unit
Publishes all representations of one item after validating the complete input.
parameter representations
source · line 28public
representations: List<ClipboardText>