cordova.define("cordova-plugin-x-toast.Toast",function(require,exports,module){function Toast(){}Toast.prototype.optionsBuilder=function(){var message=null,duration="short",position="center",addPixelsY=0;return{withMessage:function(m){return message=m.toString(),this},withDuration:function(d){return duration=d.toString(),this},withPosition:function(p){return position=p,this},withAddPixelsY:function(y){return addPixelsY=y,this},build:function(){return{message:message,duration:duration,position:position,addPixelsY:addPixelsY}}}},Toast.prototype.showWithOptions=function(options,successCallback,errorCallback){options.duration=void 0===options.duration?"long":options.duration.toString(),options.message=options.message.toString(),cordova.exec(successCallback,errorCallback,"Toast","show",[options])},Toast.prototype.show=function(message,duration,position,successCallback,errorCallback){this.showWithOptions(this.optionsBuilder().withMessage(message).withDuration(duration).withPosition(position).build(),successCallback,errorCallback)},Toast.prototype.showShortTop=function(message,successCallback,errorCallback){this.show(message,"short","top",successCallback,errorCallback)},Toast.prototype.showShortCenter=function(message,successCallback,errorCallback){this.show(message,"short","center",successCallback,errorCallback)},Toast.prototype.showShortBottom=function(message,successCallback,errorCallback){this.show(message,"short","bottom",successCallback,errorCallback)},Toast.prototype.showLongTop=function(message,successCallback,errorCallback){this.show(message,"long","top",successCallback,errorCallback)},Toast.prototype.showLongCenter=function(message,successCallback,errorCallback){this.show(message,"long","center",successCallback,errorCallback)},Toast.prototype.showLongBottom=function(message,successCallback,errorCallback){this.show(message,"long","bottom",successCallback,errorCallback)},Toast.prototype.hide=function(successCallback,errorCallback){cordova.exec(successCallback,errorCallback,"Toast","hide",[])},Toast.install=function(){return window.plugins||(window.plugins={}),window.plugins.toast=new Toast,window.plugins.toast},cordova.addConstructor(Toast.install)});