mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-15 01:08:17 -05:00
21 lines
473 B
JavaScript
21 lines
473 B
JavaScript
function networkActivityIndicator() {
|
|
}
|
|
|
|
networkActivityIndicator.prototype.set = function(value,success,fail)
|
|
{
|
|
if(value)
|
|
value = "true";
|
|
else
|
|
value = "false";
|
|
PhoneGap.exec("networkActivityIndicator.setIndicator",value,GetFunctionName(success),GetFunctionName(fail));
|
|
};
|
|
|
|
|
|
PhoneGap.addConstructor(function()
|
|
{
|
|
if(!window.plugins)
|
|
{
|
|
window.plugins = {};
|
|
}
|
|
window.plugins.networkActivityIndicator = new networkActivityIndicator();
|
|
}); |