//
//  ATRewardVideoManager.h
//  topon_flutter_plugin
//
//  Created by GUO PENG on 2021/6/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ATRewardVideoManager : NSObject

/// Load rewarded video
- (void)loadRewardedVideo:(NSString *)placementID extraDic:(NSDictionary *)extraDic;

/// Whether ad is cached
- (BOOL)rewardedVideoReady:(NSString *)placementID;

/// Check ad status
- (NSDictionary *)checkRewardedVideoLoadStatus:(NSString *)placementID;

/// Get information about all available ads under the current ad slot, supported by v5.7.53 and above.
- (NSString *)getRewardedVideoValidAds:(NSString *)placementID;

/// Show rewarded video ad
- (void)showRewardedVideo:(NSString *)placementID;

/// Display scene rewarded video ads
- (void)showRewardedVideo:(NSString *)placementID sceneID:(NSString *)sceneID;

/// Display rewarded video ads through config
- (void)showRewardedVideoWithShowConfig:(NSString *)placementID sceneID:(NSString *)sceneID showCustomExt:(NSString *)showCustomExt;

/// Report scenario entry rate
- (void)entryScenarioWithPlacementID:(NSString *)placementID sceneID:(NSString *)sceneID;

/// Enable auto-load rewarded video
- (void)autoLoadRewardedVideo:(NSString *)placementID;

/// Cancel auto-load rewarded video
- (void)cancelAutoLoadRewardedVideo:(NSString *)placementID;

/// Display fully automatically loaded rewarded video ads (scenario only)
- (void)showAutoLoadRewardedVideoAD:(NSString *)placementID sceneID:(NSString *)sceneID;

/// Display fully automatically loaded rewarded video ads (showConfig: scenario + showCustomExt)
- (void)showAutoLoadRewardedVideoAD:(NSString *)placementID sceneID:(NSString *)sceneID showCustomExt:(NSString *)showCustomExt;

/// Set the automatic loading rewarded video ad return parameters. If no extra content is passed in, it can be used to clear it.
- (void)autoLoadRewardedVideoSetLocalExtra:(NSString *)placementID extraDic:(NSDictionary *)extraDic;

@end

NS_ASSUME_NONNULL_END
