Ads C++
AdInterstitial.h
1 #pragma once
2 
3 #include <string>
4 
5 namespace ludei { namespace ads {
6 
7  class AdInterstitialListener;
8 
13  public:
14 
15  virtual ~AdInterstitial(){};
16 
20  virtual void show() = 0;
21 
25  virtual void load() = 0;
26 
32  virtual void setListener(AdInterstitialListener * listener) = 0;
33  };
34 
39  public:
40 
41  virtual ~AdInterstitialListener(){}
42 
48  virtual void onLoaded(AdInterstitial * interstitial) = 0;
49 
57  virtual void onFailed(AdInterstitial * interstitial, int32_t code, const std::string & message) = 0;
58 
64  virtual void onClicked(AdInterstitial * interstitial) = 0;
65 
71  virtual void onShown(AdInterstitial * interstitial) = 0;
72 
78  virtual void onHidden(AdInterstitial * interstitial) = 0;
79  };
80 
81 } }
Definition: AdService.h:6
Definition: AdInterstitial.h:12
virtual void onLoaded(AdInterstitial *interstitial)=0
virtual void onHidden(AdInterstitial *interstitial)=0
virtual void onClicked(AdInterstitial *interstitial)=0
virtual void onFailed(AdInterstitial *interstitial, int32_t code, const std::string &message)=0
virtual void setListener(AdInterstitialListener *listener)=0
virtual void onShown(AdInterstitial *interstitial)=0
Definition: AdInterstitial.h:38