How hard is it to create Native Extensions?

I know this is a bit subjective, but for my next project I will likely need to integrate various ad network services (such as HeyZap, Vungle, AppLovin, SuperSonic, inMobi), and I need to have a rough idea of how long it would take me to do this with OpenFL native extensions, for Android and iOS.

I am an experienced programmer and am using HaxeFlixel for a few games now, but I haven’t created any extensions and the documentation on them seems a bit sparse. I need to have a rough idea of how difficult this is going to be to do. Should I expect to be able to create an extension in a week’s work on average, for example? Is there the possibility that creating an extension for some libraries is very difficult or near-impossible to do? Thanks.

You can find several in openfl’s github which could give you a more precise idea on how to do it.

I’d also recommend reading neko’s documentation on cffi if you’re not already familiar

The time required depends on the size and complexity of the api, but a week should be enough to have it working on most case I’d say.

Ok I will read that, thanks!

Most of these should be similar, so a good template for doing it could (likely) be reproduced. It’s too bad (though) that more of these services don’t provide regular HTTP services, which could be written in Haxe, with no native extension at all :wink:

Ok that’s good to know. I’ll take a look at how other ad extensions were made :smile:

You can read this blog post from

Thanks, I’ve read that too. Also, in case anyone else is interested, this article is helpful: