/// <summary> /// The Paused event callback function. /// </summary> /// <param name="source">The application instance.</param> /// <param name="e">The event argument for Paused.</param> private void OnPaused(object source, NUIApplicationPausedEventArgs e) { Log.Info("NUI", "NUICorebackend OnPaused Called"); var handler = Handlers[EventType.Paused] as Action; handler?.Invoke(); }
// Callback for Application PauseSignal private void OnNUIApplicationPause(IntPtr data) { if (_applicationPauseEventHandler != null) { NUIApplicationPausedEventArgs e = new NUIApplicationPausedEventArgs(); e.Application = this; _applicationPauseEventHandler.Invoke(this, e); } }