Esempio n. 1
0
 public override void DidEnterBackground(UIApplication application)
 {
     PlatformBonsai.NotifyOfBackgroundChange(
         new PlatformModelBonsai {
         IsBackgroundAvailable = true, IsInBackground = true
     });
 }
Esempio n. 2
0
 protected override void OnStart()
 {
     base.OnStart();
     PlatformBonsai.NotifyOfBackgroundChange(
         new PlatformModelBonsai {
         IsBackgroundAvailable = true
     });
 }
Esempio n. 3
0
 public override void WillEnterForeground(UIApplication uiApplication)
 {
     base.WillEnterForeground(uiApplication);
     PlatformBonsai.NotifyOfBackgroundChange(
         new PlatformModelBonsai {
         IsBackgroundAvailable = true, IsInBackground = false
     });
 }
Esempio n. 4
0
 public override void OnActivated(UIApplication application)
 {
     if (application.BackgroundRefreshStatus == UIBackgroundRefreshStatus.Available)
     {
         PlatformBonsai.NotifyOfBackgroundChange(
             new PlatformModelBonsai {
             IsBackgroundAvailable = true
         });
     }
     else
     {
         PlatformBonsai.NotifyOfBackgroundChange(
             new PlatformModelBonsai {
             IsBackgroundAvailable = false
         });
     }
 }