Rg.Plugins.Popup.Pages.PopupPage.DisposingAnimation C# (CSharp) 메소드

DisposingAnimation() 개인적인 메소드

private DisposingAnimation ( ) : void
리턴 void
        internal void DisposingAnimation()
        {
            if (IsAnimating) Animation?.Disposing(Content, this);
        }

Usage Example

        public async static Task RemovePageAsync(PopupPage page, bool animate = true)
        {
            if (page == null)
                throw new NullReferenceException("Page can not be null");

            if (!page.IsAnimate)
            {
                if (animate) await page.DisappearingAnimation();
                RemovePopup(page);
                await Task.Delay(50);
                page.DisposingAnimation();
            }
        }