A NativeScript plugin to copy and paste data from and to the device clipboard.
Run the following command from the root of your project:
tns plugin add nativescript-clipboard
To use this plugin you must first require() it:
var clipboard = require("nativescript-clipboard");
clipboard.setText("Something relevant to put on the clipboard.").then(function() {
console.log("OK, copied to the clipboard");
})
clipboard.getText().then(function(content) {
console.log("Read from clipboard: " + content);
})
Implement support for storing data (image, etc) on the clipboard. Open an issue or PR in case you like to have that.