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

30 lines
819 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-08-11 15:07:32 +00:00
#import <Foundation/Foundation.h>
2017-05-27 14:24:51 +00:00
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
#import <Firebase.h>
#import "RNFirebaseEvents.h"
2017-08-11 15:07:32 +00:00
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#import <GoogleMobileAds/GADInterstitialDelegate.h>
#import <GoogleMobileAds/GADRewardBasedVideoAdDelegate.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-08-11 15:07:32 +00:00
@interface RNFirebaseAdMob : NSObject
2017-05-27 14:24:51 +00:00
@end
#endif
2017-05-27 14:24:51 +00:00
#endif