protected override void Dispose(bool disposing) { base.Dispose(disposing); if (visualEffectView != null) { visualEffectView.Dispose(); } }
public override void OnActivated(UIApplication uiApplication) { base.OnActivated(uiApplication); blurWindow?.RemoveFromSuperview(); blurWindow?.Dispose(); blurWindow = null; }
public override void OnActivated(UIApplication uiApplication) { base.OnActivated(uiApplication); removeBlurOverlay(); void removeBlurOverlay() { _blurWindow?.RemoveFromSuperview(); _blurWindow?.Dispose(); _blurWindow = null; } }
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; } }
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); } }
void RemoveBlurOverlay() { _blurWindow?.RemoveFromSuperview(); _blurWindow?.Dispose(); _blurWindow = null; }