2017-06-05 16:00:59 +00:00
|
|
|
#ifndef RNFirebaseAdMobInterstitial_h
|
|
|
|
#define RNFirebaseAdMobInterstitial_h
|
|
|
|
|
2017-08-17 16:25:51 +00:00
|
|
|
#import <React/RCTBridgeModule.h>
|
2017-06-07 11:37:32 +00:00
|
|
|
#import "RNFirebaseEvents.h"
|
2017-06-05 16:00:59 +00:00
|
|
|
|
|
|
|
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
|
|
|
|
|
2017-08-17 16:25:51 +00:00
|
|
|
#import <GoogleMobileAds/GADInterstitialDelegate.h>
|
|
|
|
#import <GoogleMobileAds/GADInterstitial.h>
|
|
|
|
#import <React/RCTEventEmitter.h>
|
2017-06-05 16:00:59 +00:00
|
|
|
#import "RNFirebaseAdMob.h"
|
|
|
|
|
|
|
|
@interface RNFirebaseAdMobInterstitial : NSObject <GADInterstitialDelegate>
|
|
|
|
@property NSString *adUnitID;
|
|
|
|
@property RNFirebaseAdMob *delegate;
|
|
|
|
@property GADInterstitial *interstitial;
|
|
|
|
|
|
|
|
- (id)initWithProps:(NSString *)adUnit delegate:(RNFirebaseAdMob *)delegate;
|
|
|
|
|
2017-06-07 13:19:06 +00:00
|
|
|
- (void)show;
|
2017-06-07 11:37:32 +00:00
|
|
|
- (void)loadAd:(NSDictionary *)request;
|
|
|
|
- (void)sendJSEvent:(NSString *)type payload:(nullable NSDictionary *)payload;
|
2017-06-05 16:00:59 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#else
|
2017-06-20 12:22:09 +00:00
|
|
|
@interface RNFirebaseAdMobInterstitial : NSObject {
|
2017-06-05 16:00:59 +00:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|