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(); });
public void RewardedVideoAdVideoComplete(ads.RewardedVideoAd ad) => Ad.OnAdVideoCompleted.Raise();
public void RewardedVideoAdDidClose(ads.RewardedVideoAd ad) => Ad.OnAdClosed.Raise();
public void OnError(ads.RewardedVideoAd ad, NSError error) => Ad.OnAdFailed.Raise("An error occured in the RewardedVideoAd");
public void RewardedVideoAdDidLoad(ads.RewardedVideoAd ad) => Ad.OnAdLoaded.Raise();