copy

fun String.copy(clipboardManager: ClipboardManager, label: String = "Copied text")

Copies the String into the clipboard using ClipboardManager.

Author

Arnau Mora

Since

20210927

Parameters

clipboardManager

The ClipboardManager for copying the String.

label

A developer-aimed label used for describing the contents of what's in the clipboard.