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

34 lines
859 B
C
Raw Normal View History

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>)
#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