var exec = require('cordova/exec'); function Trtc() {} Trtc.prototype.joinChannel = function(arg, success, error) { exec(success, error, 'Trtc', 'joinChannel', [arg]); }; Trtc.prototype.showCreatePage = function(success, error) { exec(success, error, 'Trtc', 'showCreatePage', []); } module.exports = new Trtc();