public void OnTrimMemory(TrimMemory level) { if (level == TrimMemory.UiHidden) { isInBackground = true; backgroundService.EnterBackground(); } }
public void OnTrimMemory(TrimMemory level) { switch (level) { case TrimMemory.RunningCritical: case TrimMemory.RunningLow: AndroidDependencyContainer.Instance .AnalyticsService .ReceivedLowMemoryWarning .Track(Platform.Giskard); break; case TrimMemory.UiHidden: isInBackground = true; backgroundService.EnterBackground(); break; } }
public override void DidEnterBackground(UIApplication application) { base.DidEnterBackground(application); backgroundService.EnterBackground(); }