react-native-firebase/ios/RNFirebase/admob/RNFirebaseAdMobInterstitial.h

34 lines
836 B
C
Raw Normal View History

#ifndef RNFirebaseAdMobInterstitial_h
#define RNFirebaseAdMobInterstitial_h
#import <React/RCTBridgeModule.h>
#import "RNFirebaseEvents.h"
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
#import <GoogleMobileAds/GADInterstitialDelegate.h>
#import <GoogleMobileAds/GADInterstitial.h>
#import <React/RCTEventEmitter.h>
#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;
- (void)loadAd:(NSDictionary *)request;
- (void)sendJSEvent:(NSString *)type payload:(nullable NSDictionary *)payload;
@end
#else
2017-06-20 12:22:09 +00:00
@interface RNFirebaseAdMobInterstitial : NSObject {
}
@end
#endif
#endif