AdUtils.h 545 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef AdUtils_h
  2. #define AdUtils_h
  3. #include "AdHeader.h"
  4. #include "AdUtilsInterstitial.h"
  5. #include "AdUtilsVideo.h"
  6. NS_AD_BEGIN
  7. class AdUtils : public Ref {
  8. public:
  9. AdUtils();
  10. ~AdUtils();
  11. static AdUtils* shared();
  12. void init();
  13. public:
  14. AdUtilsVideo* getVideoUtils() { return _adUtilsVideo; };
  15. AdUtilsInterstitial* getInterstitialUtils() { return _adUtilsInterstitial; }
  16. private:
  17. AdUtilsVideo* _adUtilsVideo=nullptr;
  18. AdUtilsInterstitial* _adUtilsInterstitial=nullptr;
  19. };
  20. NS_AD_END
  21. #endif /* AdUtils_h */