예제 #1
0
        void AddToView()
        {
            if (adInterstitial?.CanPresent(NavigationController, out _) == true)
            {
                adInterstitial.DismissedContent += (sender, args) => {
                    // Interstitial is a one time use object. That means once an interstitial is shown, HasBeenUsed
                    // returns true and the interstitial can't be used to load another ad.
                    // To request another interstitial, you'll need to create a new Interstitial object.
                    adInterstitial.Dispose();
                    adInterstitial = null;
                    CreateAndRequestInterstitial();
                };

                adInterstitial.Present(NavigationController);
            }
        }