//
//  ATDisposeDataTool.h
//  Pods-Runner
//
//  Created by GUO PENG on 2021/6/25.
//

#import <Foundation/Foundation.h>
#import "ATNativeAttributeMode.h"


NS_ASSUME_NONNULL_BEGIN

@interface ATDisposeDataTool : NSObject

/// Process initialization SDK, parameters passed by flutter
+ (void)disposeInitData:(NSDictionary *)dic;


/// Process the display of the original advertisement and the parameters passed by flutter
+ (ATNativeAttributeMode *)disposeNativeData:(NSDictionary *)dic keyStr:(NSString *)keyStr;

/// Handle callbacks to flutter parameters
+ (NSMutableDictionary *)revampSucceedCallDic:(NSString *)callNameKey placementID:(NSString *)placementID extraDic:(NSDictionary *_Nullable)extraDic;

/// Handle callbacks to flutter parameters
+ (NSMutableDictionary *)revampFailCallDic:(NSString *)callNameKey placementID:(NSString *)placementID extraDic:(NSDictionary *_Nullable)extraDic error:(NSError *_Nullable)error;

/// Handle callbacks to flutter parameters
+ (NSMutableDictionary *)revampTimeoutCallDic:(NSString *)callNameKey placementID:(NSString *)placementID extraDic:(NSDictionary *_Nullable)extraDic;


// Handle custom view
+ (NSArray<ATNativeAttributeMode *> *)disposeCustomViewNativeData:(NSDictionary *)dic keyStr:(NSString *)keyStr;

@end

NS_ASSUME_NONNULL_END
