2017-05-27 14:24:51 +00:00
|
|
|
#ifndef RNFirebaseAdMob_h
|
2017-05-30 09:22:48 +00:00
|
|
|
#define RNFirebaseAdMob_h
|
2017-08-11 15:07:32 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2017-05-27 14:24:51 +00:00
|
|
|
|
2017-06-05 16:00:59 +00:00
|
|
|
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
|
2017-08-17 16:25:51 +00:00
|
|
|
#import <Firebase.h>
|
2017-06-05 16:00:59 +00:00
|
|
|
#import "RNFirebaseEvents.h"
|
2017-08-11 15:07:32 +00:00
|
|
|
#import <React/RCTBridgeModule.h>
|
2017-08-17 16:25:51 +00:00
|
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
#import <GoogleMobileAds/GADInterstitialDelegate.h>
|
|
|
|
#import <GoogleMobileAds/GADRewardBasedVideoAdDelegate.h>
|
2017-06-05 16:00:59 +00:00
|
|
|
|
2017-05-30 09:22:48 +00:00
|
|
|
|
2017-06-07 13:19:06 +00:00
|
|
|
@interface RNFirebaseAdMob : RCTEventEmitter <RCTBridgeModule>
|
2017-06-05 16:00:59 +00:00
|
|
|
@property NSMutableDictionary *interstitials;
|
2017-06-07 13:19:06 +00:00
|
|
|
@property NSMutableDictionary *rewardedVideos;
|
2017-06-07 11:37:32 +00:00
|
|
|
|
2017-06-16 14:22:35 +00:00
|
|
|
+ (GADRequest *)buildRequest:(NSDictionary *)request;
|
2017-06-16 16:40:05 +00:00
|
|
|
+ (GADVideoOptions *)buildVideoOptions:(NSDictionary *)options;
|
2017-06-16 14:22:35 +00:00
|
|
|
+ (NSDictionary *)errorCodeToDictionary:(NSError *)error;
|
|
|
|
+ (GADAdSize)stringToAdSize:(NSString *)value;
|
2017-06-05 16:00:59 +00:00
|
|
|
@end
|
2017-05-27 14:24:51 +00:00
|
|
|
|
2017-06-05 16:00:59 +00:00
|
|
|
#else
|
2017-08-11 15:07:32 +00:00
|
|
|
@interface RNFirebaseAdMob : NSObject
|
2017-05-27 14:24:51 +00:00
|
|
|
@end
|
2017-06-05 16:00:59 +00:00
|
|
|
#endif
|
2017-05-27 14:24:51 +00:00
|
|
|
|
|
|
|
#endif
|