Exemplo n.º 1
0
 public Advertisement(IAdEvent adEvent, IAdListener listener)
 {
     this.adEvent     = adEvent;
     this.adCallbacks = new AdCallbacks(
         (error) => listener.OnError(error),
         () => listener.OnStarted(),
         () => listener.OnCompleted(),
         () => listener.OnClosed(),
         () => listener.OnInterstitialClicked(),
         (reward, count) => listener.OnRewardPending(reward, count),
         () => listener.OnRewardedVideoStarted(),
         () => listener.OnRewardedVideoEnded());
 }
Exemplo n.º 2
0
 public Advertisement(IAdEvent adEvent, AdCallbacks adCallbacks)
 {
     this.adEvent     = adEvent;
     this.adCallbacks = adCallbacks;
 }