2
0
mirror of synced 2025-01-12 15:14:39 +00:00

30 lines
819 B
C
Raw Normal View History

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