cordovaLinker.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var exec = require('cordova/exec');
  2. exports.goMain = function(arg0, success, error) {
  3. exec(success, error, "CordovaLinker", "goMain", [arg0]);
  4. };
  5. exports.appExit = function(arg0,success,error){
  6. exec(success,exec,"CordovaLinker","exit",[arg0]);
  7. }
  8. exports.callMap = function(arg0,success,error){
  9. exec(success,exec,"CordovaLinker","callMap",[arg0]);
  10. }
  11. exports.getdistance = function(arg0, success, error) {
  12. exec(success, error, "CordovaLinker", "getdistance", [arg0]);
  13. };
  14. exports.discuss = function(arg0, success, error) {
  15. exec(success, error, "CordovaLinker", "discuss", [arg0]);
  16. };
  17. exports.startChat = function(arg0, success, error) {
  18. exec(success, error, "CordovaLinker", "startChat", [arg0]);
  19. };
  20. exports.goBack = function(arg0, success, error) {
  21. exec(success, error, "CordovaLinker", "goBack", [arg0]);
  22. };
  23. exports.loadFinished = function(arg0, success, error) {
  24. exec(success, error, "CordovaLinker", "loadFinished", [arg0]);
  25. };
  26. exports.getIsAutoCheck = function(arg0, success, error) {
  27. exec(success, error, "CordovaLinker", "getIsAutoCheck", [arg0]);
  28. };
  29. exports.saveIsAutoCheck = function(arg0, success, error) {
  30. exec(success, error, "CordovaLinker", "saveIsAutoCheck", [arg0]);
  31. };