Clipboard set
An action block that sets the clipboard content.
The fiber will proceed immediately without pause.
If content text, HTML and URI are all null
then the clipboard is cleared.
The MIME type is either as specified, otherwise the resolved type of the content URI if non null
,
"text/html"
if HTML is non null
or
"text/plain"
if text is non null
.
Caution! Don’t assign sensitive information to the clipboard as it can be accessed by all apps.
Input arguments
- Content text — text content to assigned to the clipboard, required if HTML is set.
- Content HTML — HTML content to assigned to the clipboard, text must also be set. (Android 4.1+)
- Content URI — URI of content to assigned to the clipboard.
- Content MIME type — MIME type of content, default depends on the other content arguments, see above.
- Label — label of content, default is no label.
- Sensitive — whether content contains sensitive information that shouldn’t appear in previews, default is no. (Android 13+)