createClipEntry

actual fun createClipEntry(text: String, label: String, sensitive: Boolean): ClipEntry(source)

Creates a platform-appropriate ClipEntry for the given text.

Set sensitive for key material or anything else that should not be surfaced by the OS: on Android it marks the clip so the system does not show the copied content in the paste preview toast, and clipboard-reading tools are asked to treat it as secret. Pass it for private keys and for channel URLs, which carry channel PSKs.

expect fun createClipEntry(text: String, label: String = "", sensitive: Boolean = false): ClipEntry(source)

Creates a platform-appropriate ClipEntry for the given text.

Set sensitive for key material or anything else that should not be surfaced by the OS: on Android it marks the clip so the system does not show the copied content in the paste preview toast, and clipboard-reading tools are asked to treat it as secret. Pass it for private keys and for channel URLs, which carry channel PSKs.

actual fun createClipEntry(text: String, label: String, sensitive: Boolean): ClipEntry(source)

Creates a platform-appropriate ClipEntry for the given text.

Set sensitive for key material or anything else that should not be surfaced by the OS: on Android it marks the clip so the system does not show the copied content in the paste preview toast, and clipboard-reading tools are asked to treat it as secret. Pass it for private keys and for channel URLs, which carry channel PSKs.