コード例 #1
0
 /// <summary>
 ///  Called when the CoronaRuntimeEnvironment is terminating
 ///  during a Lua "applicationExit" system event.
 /// </summary>
 /// <param name="sender">The CoronaRuntime object that raised this event.</param>
 /// <param name="e">Event arguments providing the CoronaRuntimeEnvironment that is being terminated.</param>
 private void OnCoronaRuntimeExiting(
     object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e)
 {
     // Give up our reference to the Corona runtime since it is not running anymore.
     // This also allows it to be garbage collected.
     fCoronaRuntimeEnvironment = null;
 }
コード例 #2
0
 /// <summary>
 ///  Called when a new CoronaRuntimeEnvironment has been created/loaded,
 ///  but before the "main.lua" has been executed.
 /// </summary>
 /// <param name="sender">The CoronaRuntime object that raised this event.</param>
 /// <param name="e">Event arguments providing the CoronaRuntimeEnvironment that has been created/loaded.</param>
 private void OnCoronaRuntimeLoaded(
     object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e)
 {
     // Keep a reference to the Corona runtime environment.
     // It's needed so that your login window's results can be dispatched to Corona.
     fCoronaRuntimeEnvironment = e.CoronaRuntimeEnvironment;
     fCoronaRuntimeEnvironment.AddEventListener("requestingLogin", OnRequestingLogin);
 }
コード例 #3
0
        /// <summary>
        ///  Called when a new CoronaRuntimeEnvironment has been created/loaded,
        ///  but before the "main.lua" has been executed.
        /// </summary>
        /// <param name="sender">The CoronaRuntime object that raised this event.</param>
        /// <param name="e">Event arguments providing the CoronaRuntimeEnvironment that has been created/loaded.</param>
        private void OnCoronaRuntimeLoaded(object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e)
        {
            e.CoronaRuntimeEnvironment.AddEventListener("startSubscribeAndPublish", OnStartSubscribeAndPublish);

            e.CoronaRuntimeEnvironment.AddEventListener("stopSubscribeAndPublish", OnStopSubscribeAndPublish);
        }
コード例 #4
0
 /// <summary>Called when the Corona runtime has started and finished loaded the "main.lua" file.</summary>
 /// <param name="sender">The CoronaRuntime object that raised this event.</param>
 /// <param name="e">Event arguments providing the CoronaRuntimeEnvironment that has been started.</param>
 private void OnCoronaRuntimeStarted(object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e)
 {
     coronaEventArgs = e;
 }