copyToClipboard Method

This method allows apps to write to the device clipboard

intel.xdk.device.copyToClipboard("code to copy");


Copies text to the device clipboard for allowing pasting into another application after the Intel app is closed.

Available Platforms:


//copy to clipboard
intel.xdk.device.copyToClipboard("this is a test");

For more complete information about compiler optimizations, see our Optimization Notice.