Skip to content

Instantly share code, notes, and snippets.

@Maxim-Kolmogorov
Created January 6, 2021 13:32
Show Gist options
  • Save Maxim-Kolmogorov/61f8f908f830f033525aa660ba621f99 to your computer and use it in GitHub Desktop.
Save Maxim-Kolmogorov/61f8f908f830f033525aa660ba621f99 to your computer and use it in GitHub Desktop.
Tutorial: Cordova plugin in Swift. Part 2.
var exec = require('cordova/exec');
exports.echo = function(arg0, success, error) {
exec(success, error, 'EchoTest', 'echo', [arg0]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment