Pasteboard
Copy and paste text
The clipboard. In-app only: a widget has no access and the call fails at once rather than spending its time budget.
Properties
isAvailableBooleanFalse in a widget.
Methods
Pasteboard.copy(text)Puts text on the clipboard.
- text String required
Pasteboard.paste()StringText from the clipboard, or null.
Examples
Copying a result
if (Pasteboard.isAvailable) {
Pasteboard.copy(result);
Haptics.play("success");
}