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

32 lines
832 B
C
Raw Normal View History

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