mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
25 lines
809 B
JavaScript
25 lines
809 B
JavaScript
function SoftKeyBoard() {}
|
|
|
|
SoftKeyBoard.prototype.show = function(win, fail) {
|
|
return PhoneGap.exec(
|
|
function (args) { if(win !== undefined) { win(args); } },
|
|
function (args) { if(fail !== undefined) { fail(args); } },
|
|
"SoftKeyBoard",
|
|
"show",
|
|
[]);
|
|
};
|
|
|
|
SoftKeyBoard.prototype.hide = function(win, fail) {
|
|
return PhoneGap.exec(
|
|
function (args) { if(win !== undefined) { win(args); } },
|
|
function (args) { if(fail !== undefined) { fail(args); } },
|
|
"SoftKeyBoard",
|
|
"hide",
|
|
[]);
|
|
};
|
|
|
|
PhoneGap.addConstructor(function() {
|
|
PhoneGap.addPlugin('SoftKeyBoard', new SoftKeyBoard());
|
|
PluginManager.addService("SoftKeyBoard","com.zenexity.SoftKeyBoardPlugin.SoftKeyBoard");
|
|
});
|