Пример #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (visualEffectView != null)
     {
         visualEffectView.Dispose();
     }
 }
Пример #2
0
 public override void OnActivated(UIApplication uiApplication)
 {
     base.OnActivated(uiApplication);
     blurWindow?.RemoveFromSuperview();
     blurWindow?.Dispose();
     blurWindow = null;
 }
Пример #3
0
        public override void OnActivated(UIApplication uiApplication)
        {
            base.OnActivated(uiApplication);

            removeBlurOverlay();

            void removeBlurOverlay()
            {
                _blurWindow?.RemoveFromSuperview();
                _blurWindow?.Dispose();
                _blurWindow = null;
            }
        }
Пример #4
0
        public override void OnActivated(UIApplication application)
        {
            // Restart any tasks that were paused (or not yet started) while the application was inactive.
            // If the application was previously in the background, optionally refresh the user interface.

            if (blurView != null)
            {
                blurView.RemoveFromSuperview();
                blurView.Dispose();
                blurView = null;
            }
            InActivityHandler.Instance.ApplicationResumes();
        }
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (disposing)
            {
                _intermediateLayer?.RemoveFromSuperLayer();
                _intermediateLayer?.Dispose();
                _intermediateLayer = null;

                _blurView?.RemoveFromSuperview();
                _blurView?.Dispose();
                _blurView = null;
            }
        }
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            InternalLogger.Debug(Tag, () => $"Dispose( disposing: {disposing} )");

            if (disposing)
            {
                _intermediateLayer?.RemoveFromSuperLayer();
                _intermediateLayer?.Dispose();
                _intermediateLayer = null;

                _blurView?.RemoveFromSuperview();
                _blurView?.Dispose();
                _blurView = null;
            }
        }
Пример #7
0
        public override void OnActivated(UIApplication uiApplication)
        {
            base.OnActivated(uiApplication);

            /* ==================================================================================================
             * App is activated => remove the blur view
             * ================================================================================================*/
            try
            {
                if (_blurView != null)
                {
                    _blurView.RemoveFromSuperview();
                    _blurView.Dispose();
                    _blurView = null;
                }
            }
            catch (Exception ex)
            {
                /* ==================================================================================================
                 * ignore any exception if occured
                 * ================================================================================================*/
                LogCommon.Error(ex);
            }
        }
Пример #8
0
 void RemoveBlurOverlay()
 {
     _blurWindow?.RemoveFromSuperview();
     _blurWindow?.Dispose();
     _blurWindow = null;
 }