mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
20 lines
400 B
JavaScript
20 lines
400 B
JavaScript
/**
|
|
*
|
|
* Phonegap share plugin for Android
|
|
* Kevin Schaul 2011
|
|
*
|
|
*/
|
|
|
|
var Share = function() {};
|
|
|
|
Share.prototype.show = function(content, success, fail) {
|
|
return cordova.exec( function(args) {
|
|
success(args);
|
|
}, function(args) {
|
|
fail(args);
|
|
}, 'Share', '', [content]);
|
|
};
|
|
|
|
cordova.addConstructor(function(){
|
|
cordova.addPlugin('share', new Share());
|
|
}); |