class PrimarySelection
source · line 4public
public class PrimarySelection internal constructor(private val owner: ApplicationOwner)
A platform PRIMARY selection, separate from the explicit copy/paste clipboard.
property defaultPasteEnabled
source · line 11public
public val defaultPasteEnabled: Boolean
get: public read-only
Resolves the native middle-button preference, or the platform's enabled default.
getter get
source · line 11public
get(): Boolean
function readText
source · line 15public
public fun readText(): String?
property isAvailable
source · line 6public
public val isAvailable: Boolean
get: public read-only
False when the backend only supplies a process-local placeholder.
getter get
source · line 6public
get(): Boolean
function claimText
source · line 23public
public fun claimText(text: String): PrimarySelectionClaim?
Claims one owned plain-text value; unavailable platforms return None.
parameter text
source · line 23public
text: String