Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
how to call back an event for lua — Gideros Forum

how to call back an event for lua

albert988albert988 Member
edited July 2013 in General questions
Now I creating a plugin for android and facing a problem.

I want to send result to lua code from JAVA code using event, just like:

JAVA code:

public static void methodOne(){
// I'm doing something
// now I want to call back native method
}

lua code:

plugin:addEventListener(Event.SOMETHING, function(event)
local ret = event.returnSomeThing
// to do anything
end)

Please help, thanks.

Comments

Sign In or Register to comment.