public static void EnterBackground() { ApplicationState assert9; ApplicationState assert10; switch (CoreApp.State) { case ApplicationState.Terminating: return; case ApplicationState.Uninitialized: return; case ApplicationState.Background: return; case ApplicationState.Foreground: break; case ApplicationState.Interactive: { CoreApp.ExitInteractive(); break; } } assert9 = CoreApp.State; global::Uno.Diagnostics.Debug.Assert(assert9 == ApplicationState.Foreground, "Uno.Platform.CoreApp.State == Uno.Platform.ApplicationState.Foreground", "Library/Core/UnoCore/Source/Uno/Platform/CoreApp.uno", 210, new object[] { (object)assert9, (object)ApplicationState.Foreground }); CoreApp.State = ApplicationState.Background; ApplicationStateTransitionHandler handler = CoreApp.EnteringBackground; if (handler != null) { handler(CoreApp.State); } assert10 = CoreApp.State; global::Uno.Diagnostics.Debug.Assert(assert10 == ApplicationState.Background, "Uno.Platform.CoreApp.State == Uno.Platform.ApplicationState.Background", "Library/Core/UnoCore/Source/Uno/Platform/CoreApp.uno", 218, new object[] { (object)assert10, (object)ApplicationState.Background }); }