Example #1
0
 protected override void OnStart()
 {
     base.OnStart();
     ProjectViewModelBase._mainMenu?.SubToNotifications();
     // Handle when your app starts
     Logging.Log.LogInfo("XamarinForms: OnStart");
     OnLifeCycleChanged?.Invoke(this, EnumLifeCycle.Started);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }