//
//  ATInterstitialManager.h
//  topon_flutter_plugin
//
//  Created by GUO PENG on 2021/6/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ATInterstitialManager : NSObject
/// Load interstitial ad
- (void)loadInterstitialAd:(NSString *)placementID extraDic:(NSDictionary *)extraDic;

/// Whether interstitial ad is ready
- (BOOL)hasInterstitialAdReady:(NSString *)placementID;

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

/// Get placement status
- (NSDictionary *)checkInterstitialLoadStatus:(NSString *)placementID;

/// Show interstitial ad
- (void)showInterstitialAd:(NSString *)placementID;

/// Show interstitial ad with scenario
- (void)showInterstitialAd:(NSString *)placementID sceneID:(NSString *)sceneID;

/// Display scene interstitial ads through config
- (void)showInterstitialAdWithShowConfig:(NSString *)placementID sceneID:(NSString *)sceneID showCustomExt:(NSString *)showCustomExt;

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

/// Enable auto-load
- (void)autoLoadInterstitialAD:(NSString *)placementID;

/// Cancel auto-load interstitial
- (void)cancelAutoLoadInterstitialAD:(NSString *)placementID;

/// Display fully automatic loading interstitial screen
- (void)showAutoLoadInterstitialADWithPlacementID:(NSString *)placementID sceneID:(NSString *)sceneID;

/// Display fully automatic loading interstitial screen (showConfig)
- (void)showAutoLoadInterstitialADWithPlacementID:(NSString *)placementID sceneID:(NSString *)sceneID showCustomExt:(NSString *)showCustomExt;

///Set the return parameters for automatically loading interstitial ads. If no extra content is passed in, it can be used to clear it.
- (void)autoLoadInterstitialADSetLocalExtra:(NSString *)placementID extraDic:(NSDictionary *)extraDic;

@end

NS_ASSUME_NONNULL_END
