Ejemplo n.º 1
0
 public override void DidEnterBackground(UIApplication application)
 {
     PlatformBonsai.NotifyOfBackgroundChange(
         new PlatformModelBonsai {
         IsBackgroundAvailable = true, IsInBackground = true
     });
 }
Ejemplo n.º 2
0
 protected override void OnStart()
 {
     base.OnStart();
     PlatformBonsai.NotifyOfBackgroundChange(
         new PlatformModelBonsai {
         IsBackgroundAvailable = true
     });
 }
Ejemplo n.º 3
0
 public override void WillEnterForeground(UIApplication uiApplication)
 {
     base.WillEnterForeground(uiApplication);
     PlatformBonsai.NotifyOfBackgroundChange(
         new PlatformModelBonsai {
         IsBackgroundAvailable = true, IsInBackground = false
     });
 }
Ejemplo 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
         });
     }
 }