コード例 #1
0
ファイル: Application.iOS.cs プロジェクト: Robert-Louis/Uno
        private void OnEnteredBackground(NSNotification notification)
        {
            Windows.UI.Xaml.Window.Current?.OnVisibilityChanged(false);
            EnteredBackground?.Invoke(this, new EnteredBackgroundEventArgs());

            OnSuspending();
        }
コード例 #2
0
ファイル: CoreApplication.cs プロジェクト: unoplatform/uno
 /// <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);
コード例 #3
0
 private void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     EventDispatcher.Dispatch(() => EnteredBackground?.Invoke(this, e));
 }