BUSplashZoomOutView.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // BUSplashZoomOutView.h
  3. // BUAdSDK
  4. //
  5. // Created by wangyanlin on 2020/6/17.
  6. // Copyright © 2020 bytedance. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "BUMaterialMeta.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol BUSplashZoomOutViewDelegate;
  12. @interface BUSplashZoomOutView : UIView
  13. /*
  14. required.
  15. Root view controller for handling ad actions.
  16. */
  17. @property (nonatomic, weak) UIViewController *rootViewController;
  18. /**
  19. Suggested size for show.
  20. */
  21. @property (nonatomic, assign, readonly) CGSize showSize;
  22. /**
  23. The delegate for receiving state change messages.
  24. */
  25. @property (nonatomic, weak) id<BUSplashZoomOutViewDelegate> delegate;
  26. @end
  27. @protocol BUSplashZoomOutViewDelegate <NSObject>
  28. /**
  29. This method is called when splash ad is clicked.
  30. */
  31. - (void)splashZoomOutViewAdDidClick:(BUSplashZoomOutView *)splashAd;
  32. /**
  33. This method is called when splash ad is closed.
  34. */
  35. - (void)splashZoomOutViewAdDidClose:(BUSplashZoomOutView *)splashAd;
  36. /**
  37. This method is called when spalashAd automatically dimiss afte countdown equals to zero
  38. */
  39. - (void)splashZoomOutViewAdDidAutoDimiss:(BUSplashZoomOutView *)splashAd;
  40. /**
  41. This method is called when another controller has been closed.
  42. @param interactionType : open appstore in app or open the webpage or view video ad details page.
  43. */
  44. - (void)splashZoomOutViewAdDidCloseOtherController:(BUSplashZoomOutView *)splashAd interactionType:(BUInteractionType)interactionType;
  45. @end
  46. NS_ASSUME_NONNULL_END