protected override void OnStart() { base.OnStart(); ProjectViewModelBase._mainMenu?.SubToNotifications(); // Handle when your app starts Logging.Log.LogInfo("XamarinForms: OnStart"); OnLifeCycleChanged?.Invoke(this, EnumLifeCycle.Started); }
protected override void OnResume() { base.OnResume(); // Handle when your app resumes Logging.Log.LogInfo("XamarinForms: OnResume"); ProjectViewModelBase._mainMenu?.SubToNotifications(); //SignalRExtension.BcSignalR(null).ReConnect(); OnLifeCycleChanged?.Invoke(this, EnumLifeCycle.Resumed); }
protected override void OnSleep() { base.OnSleep(); // Handle when your app sleeps Logging.Log.LogInfo("XamarinForms: OnSleep"); ProjectViewModelBase._mainMenu?.UnSubNotifications(); //SignalRExtension.BcSignalR(null).DisConnect(); OnLifeCycleChanged?.Invoke(this, EnumLifeCycle.FellAsleep); }