2017-06-07 13:19:06 +00:00
|
|
|
#ifndef RNFirebaseAdMobRewardedVideo_h
|
|
|
|
#define RNFirebaseAdMobRewardedVideo_h
|
|
|
|
|
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
#import "RNFirebaseEvents.h"
|
|
|
|
|
|
|
|
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
|
|
|
|
|
2017-08-17 16:25:51 +00:00
|
|
|
#import <GoogleMobileAds/GADRewardBasedVideoAdDelegate.h>
|
|
|
|
#import <GoogleMobileAds/GADRewardBasedVideoAd.h>
|
2017-06-07 13:19:06 +00:00
|
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
#import "RNFirebaseAdMob.h"
|
|
|
|
|
|
|
|
@interface RNFirebaseAdMobRewardedVideo : NSObject <GADRewardBasedVideoAdDelegate>
|
|
|
|
@property NSString *adUnitID;
|
|
|
|
@property RNFirebaseAdMob *delegate;
|
|
|
|
@property GADRewardBasedVideoAd *videoAd;
|
|
|
|
|
|
|
|
- (id)initWithProps:(NSString *)adUnit delegate:(RNFirebaseAdMob *)delegate;
|
|
|
|
|
|
|
|
- (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 RNFirebaseAdMobRewardedVideo : NSObject {
|
2017-06-07 13:19:06 +00:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|