Hi guys, Just recently learned to use LuaJava for making callbacks to java/Android, but now I'm looking for a way to make callbacks to iOs when the app is running on an iphone.
@RogerT basically there are two ways to do that. 1) using Gideros events 2) accessing somekind of object or global function in lua
In both ways it all happens on C part, so there is nothing new there. And with IOS it will be even easier, because you can mix C and Objective-C code in one file. just name the file extension as .mm
You can then make native iOS calls in Lua within your game code. I use it a lot to interact with iOS native plugins like Flurry, Parse, Chartboost, Facebook, as well as for native dialogs and text entry.
Comments
https://github.com/nascode
Likes: RogerT
basically there are two ways to do that.
1) using Gideros events
2) accessing somekind of object or global function in lua
In both ways it all happens on C part, so there is nothing new there.
And with IOS it will be even easier, because you can mix C and Objective-C code in one file. just name the file extension as .mm
Likes: RogerT
You can then make native iOS calls in Lua within your game code. I use it a lot to interact with iOS native plugins like Flurry, Parse, Chartboost, Facebook, as well as for native dialogs and text entry.
Likes: RogerT