Clipboard

API Reference: Device.System

Clipboard is used to send a text to the clipboard of the device or get a text from the clipboard.

JavaScript
JavaScript
const Page = require("sf-core/ui/page");
const extend = require("js-base/core/extend");
const System = require('sf-core/device/system');
var Page1 = extend(Page)(
function(_super) {
_super(this, {
onShow: function(params) {
Application.statusBar.visible = false;
this.headerBar.visible = false;
}
});
System.clipboard = System.OS;
console.log(System.clipboard);
}
);
module.exports = Page1;