示例#1
0
        public Task LoadVideo() => Thread.UI.Run(() =>
        {
            if (string.IsNullOrEmpty(PlacementId))
            {
                OnAdFailed.Raise("The PlacementId of the RewardedVideoAd has not specified!");
                return;
            }

            RewardedVideo          = new ads.RewardedVideoAd(PlacementId);
            RewardedVideo.Delegate = new RewardedVideoListener(this);
            RewardedVideo.LoadAd();
        });
示例#2
0
 public void RewardedVideoAdVideoComplete(ads.RewardedVideoAd ad) => Ad.OnAdVideoCompleted.Raise();
示例#3
0
 public void RewardedVideoAdDidClose(ads.RewardedVideoAd ad) => Ad.OnAdClosed.Raise();
示例#4
0
 public void OnError(ads.RewardedVideoAd ad, NSError error) => Ad.OnAdFailed.Raise("An error occured in the RewardedVideoAd");
示例#5
0
 public void RewardedVideoAdDidLoad(ads.RewardedVideoAd ad) => Ad.OnAdLoaded.Raise();