Device.setClipboardString()

Overview

Stores a string value to the device's clipboard.

Added in version 2.1.1

Format

Device.setClipboardString(stringValue);

Parameter Description Type Required
stringValue A value to store in the device's clipboard as a string. String Required

Example

Copy
/* Store the device's serial number in the clipboard.
*/
var serial = Device.getDeviceSerial();
Device.setClipboardString(serial);