|
| 1 | +// |
| 2 | +// ZADNFullScreenInterstitialView.h |
| 3 | +// ZucksAdNetworkSDK |
| 4 | +// |
| 5 | +// Copyright (C) 2015 Zucks, Inc. |
| 6 | +// |
| 7 | + |
| 8 | +#import "ZADNPlatform.h" |
| 9 | +#import <UIKit/UIKit.h> |
| 10 | + |
| 11 | +NS_ASSUME_NONNULL_BEGIN |
| 12 | +@protocol ZADNFullScreenInterstitialViewDelegate; |
| 13 | + |
| 14 | +typedef NS_ENUM(NSInteger, ZADNFullScreenInterstitialLoadErrorType) { |
| 15 | + ZADNFullScreenInterstitialLoadErrorTypeOffline = 1, // オフライン |
| 16 | + ZADNFullScreenInterstitialLoadErrorTypeFrameIdUndefined, // frameIDエラー |
| 17 | + ZADNFullScreenInterstitialLoadErrorTypeAdOutOfStock, // 在庫切れ |
| 18 | + ZADNFullScreenInterstitialLoadErrorTypeOtherError // その他エラー |
| 19 | +}; |
| 20 | + |
| 21 | +typedef NS_ENUM(NSInteger, ZADNFullScreenInterstitialShowErrorType) { |
| 22 | + ZADNFullScreenInterstitialShowErrorTypeOffline = 1, // オフライン |
| 23 | + ZADNFullScreenInterstitialShowErrorTypeNoAdData, // 広告情報未取得 |
| 24 | + ZADNFullScreenInterstitialShowErrorTypeLoading, // 広告情報ロード中 |
| 25 | + ZADNFullScreenInterstitialShowErrorTypeAlreadyShowing, // 広告表示中 |
| 26 | + ZADNFullScreenInterstitialShowErrorTypeOtherError // その他エラー |
| 27 | +}; |
| 28 | + |
| 29 | +@interface ZADNFullScreenInterstitialView : UIView |
| 30 | + |
| 31 | +@property(nullable, copy, nonatomic) NSString *frameId; |
| 32 | +@property(nullable, weak, nonatomic) id<ZADNFullScreenInterstitialViewDelegate> delegate; |
| 33 | +@property(nonatomic) ZADNPlatform *zucksPlatform; |
| 34 | + |
| 35 | ++ (instancetype)sharedInstance; |
| 36 | +- (void)loadAd; |
| 37 | +- (void)show; |
| 38 | +- (void)dismiss; |
| 39 | + |
| 40 | +- (id)initWithFrame:(CGRect)frame |
| 41 | + __attribute__((unavailable("initWithFrame is not available"))); |
| 42 | + |
| 43 | +@end |
| 44 | + |
| 45 | +@protocol ZADNFullScreenInterstitialViewDelegate<NSObject> |
| 46 | +@optional |
| 47 | + |
| 48 | +- (void)fullScreenInterstitialViewDidReceiveAd; |
| 49 | +- (void)fullScreenInterstitialViewDidLoadFailAdWithErrorType: |
| 50 | + (ZADNFullScreenInterstitialLoadErrorType)errorType; |
| 51 | +- (void)fullScreenInterstitialViewDidShowAd; |
| 52 | +- (void)fullScreenInterstitialViewDidShowFailAdWithErrorType: |
| 53 | + (ZADNFullScreenInterstitialShowErrorType)errorType; |
| 54 | +- (void)fullScreenInterstitialViewCancelDisplayRate; |
| 55 | +- (void)fullScreenInterstitialViewDidTapAd; |
| 56 | +- (void)fullScreenInterstitialViewDidDismissAd; |
| 57 | + |
| 58 | +@end |
| 59 | +NS_ASSUME_NONNULL_END |
0 commit comments