import {Plugin, Cordova} from './plugin'; /** * @name Clipboard * @description * Clipboard management plugin for Cordova that supports iOS, Android, and Windows Phone 8. * * Requires Cordova plugin: https://github.com/VersoSolutions/CordovaClipboard * For more info, please see the [Clipboard plugin docs](https://github.com/VersoSolutions/CordovaClipboard.git). * * @usage * ```js * Clipboard.copy("Hello world"); * * Clipboard.paste().then( * (resolve : string) => { * alert(resolve); * }, * (reject : string) => { * alert("Error: " + reject); * } * ); * ); * ``` */ @Plugin({ plugin: 'https://github.com/VersoSolutions/CordovaClipboard.git', pluginRef: 'cordova.plugins.clipboard', repo: 'https://github.com/VersoSolutions/CordovaClipboard' }) export class Clipboard { /** * Copies the given text * @param text * @returns {Promise} */ @Cordova() static copy(text: string): Promise { return } /** * Pastes the text stored in clipboard * @returns {Promise} */ @Cordova() static paste(): Promise { return } }