1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef NS_OPTIONS(NSInteger, GDTHybridAdOptions) {
- GDTHybridAdOptionRewardVideo = 1 << 0
- };
- @class GDTHybridAd;
- @protocol GDTHybridAdDelegate <NSObject>
- @optional
- - (void)gdt_hybridAdDidPresented:(GDTHybridAd *)hybridAd;
- - (void)gdt_hybridAdDidClose:(GDTHybridAd *)hybridAd;
- - (void)gdt_hybridAdLoadURLSuccess:(GDTHybridAd *)hybridAd;
- - (void)gdt_hybridAd:(GDTHybridAd *)hybridAd didFailWithError:(NSError *)error;
- @end
- @interface GDTHybridAd : NSObject
- @property (nonatomic, copy) NSString *titleContent;
- @property (nonatomic, strong) UIColor *titleColor;
- @property (nonatomic, strong) UIFont *titleFont;
- @property (nonatomic, strong) UIColor *navigationBarColor;
- @property (nonatomic, strong) UIColor *navigationBarBottomColor;
- @property (nonatomic, strong) UIColor *separatorLineColor;
- @property (nonatomic, strong) UIImage *closeImage;
- @property (nonatomic, strong) UIImage *backImage;
- @property (nonatomic, weak) id <GDTHybridAdDelegate> delegate;
- - (instancetype)initWithType:(GDTHybridAdOptions)adOptions;
- - (void)loadWithUrl:(NSString *)url;
- - (void)showWithRootViewController:(UIViewController *)rootViewController;
- @end
- NS_ASSUME_NONNULL_END
|