Here is the code from the Documentation
private void OnCoronaRuntimeStarted(object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e) { var eventProperties = CoronaLabs.Corona.WinRT.CoronaLuaEventProperties.CreateWithName("requestingSum"); eventProperties.Set("x", 5); eventProperties.Set("y", 10); eventProperties.Set("message", "Hello. Can you add these 2 numbers please?"); // Dispatch the event to Lua. var eventArgs = new CoronaLabs.Corona.WinRT.CoronaLuaEventArgs(eventProperties); var result = e.CoronaRuntimeEnvironment.DispatchEvent(eventArgs); }
my issue is that you are using e.CoronaRuntimeEnvironment.DispatchEvent(eventArgs);
within the onCoronaRunTimeStarted method.
I would like to send notifications to LUA based on other windows phone events.
so lets say i want to send a time tick ( not really but good example ).
If i had a timer of some kind on the windows side and every tick i wanted to let lua know to animate a clock based on the above it looks like I have to pass ( e - which is CoronaRuntimeEventArgs ) that is not available in other windows events so do you have an example of doing that?
thanks
Larry