mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
23 lines
521 B
JavaScript
23 lines
521 B
JavaScript
var ContactView = function() {};
|
|
|
|
ContactView.prototype.show = function(successCallback, failCallback) {
|
|
|
|
function success(args) {
|
|
successCallback(args);
|
|
}
|
|
|
|
function fail(args) {
|
|
failCallback(args);
|
|
}
|
|
|
|
return PhoneGap.exec(function(args) {
|
|
success(args);
|
|
}, function(args) {
|
|
fail(args);
|
|
}, 'ContactView', '', []);
|
|
};
|
|
|
|
PhoneGap.addConstructor(function() {
|
|
PhoneGap.addPlugin('contactView', new ContactView());
|
|
PluginManager.addService("ContactView","com.rearden.ContactView");
|
|
}); |