cordova

Set of externs to use Apache Cordova plugins with Haxe js.
https://github.com/tokomlabs/haxe-cordova

To install, run:

haxelib install cordova 0.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

Haxe js externs for Apache Cordova / PhoneGap

Compatible with Haxe 3.2+.

List of supported externs

And more to come...

API

Use example with the Camera plugin:

// hybrid app that differenciates cordova builds from web builds
#if cordova
			js.cordova.plugin.Camera.getPicture(

				function(pd : String) {

					// then send pd to server
				},

				function(e : String) {

					// display error to user
				},

				{
					allowEdit : true,
					targetWidth : 400,
					targetHeight : 400
				});
#else
			trace("camera not available on this platform");
#end

Contributions

Those externs can sometimes partially cover their original lib. Do not hesitate to contribute with new externs, updates to existing externs or even better approaches for those externs.

Contributors
zabojad
Version
0.0.1
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github