Exemplo n.º 1
0
        public void Dismiss(bool animated = true)
        {
            if (window != null)
            {
                BeforeDissmising?.Invoke(this, null);

                if (animated)
                {
                    if (CustomAnimation == null)
                    {
                        defaultHideAnimation();
                    }
                    else
                    {
                        CustomAnimation.HideAnimation(this);
                    }
                }
                else
                {
                    window.RemoveLayer(layer);
                }
                AfterDissmising?.Invoke(this, null);
            }
        }