Skip to content

danielsogl/cordova-plugin-clipboard

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 9 commits ahead of VersoSolutions:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
www
 
 
 
 
 
 
 
 
 
 

Clipboard

Clipboard management plugin for Cordova/PhoneGap that supports iOS, Android, Windows, and Windows Phone 8.

Usage

Install the plugin using the CLI, for instance with PhoneGap:

phonegap local plugin add danielsogl-cordova-plugin-clipboard

The plugin creates the object cordova.plugins.clipboard with the methods copy(text, onSuccess, onError) and paste(onSuccess, onError).

Example:

var text = "Hello World!";

cordova.plugins.clipboard.copy(text);

cordova.plugins.clipboard.paste(function (text) { alert(text); });

Notes

All platforms

  • The plugin only works with text content.

Windows Phone

  • The Windows Phone platform doesn't allow applications to read the content of the clipboard. Using the paste method will return an error.

Android

  • The minimum supported API Level is 11. Make sure that minSdkVersion is larger or equal to 11 in AndroidManifest.xml.

Acknowledgements

This plugin was inspired by ClipboardManagerPlugin (Android) and ClipboardPlugin (iOS).

About

Clipboard management plugin for Cordova/PhoneGap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 29.9%
  • Java 28.3%
  • C# 22.9%
  • Objective-C 18.9%