Exemple #1
0
        private void OnEnteredBackground(NSNotification notification)
        {
            Windows.UI.Xaml.Window.Current?.OnVisibilityChanged(false);
            EnteredBackground?.Invoke(this, new EnteredBackgroundEventArgs());

            OnSuspending();
        }
Exemple #2
0
 /// <summary>
 /// Raises the <see cref="EnteredBackground"/> event.
 /// </summary>
 /// <param name="args">Entered background event args.</param>
 internal static void RaiseEnteredBackground(EnteredBackgroundEventArgs args) => EnteredBackground?.Invoke(null, args);
 private void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     EventDispatcher.Dispatch(() => EnteredBackground?.Invoke(this, e));
 }