CSJSplashPreloader.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // CSJSplashPreloader.h
  3. // CSJAdSDK
  4. //
  5. // Created by carl on 2017/9/6.
  6. // Copyright © 2017年 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "CSJMaterialMeta+Splash.h"
  10. @class CSJAdSlot;
  11. @class BUPersistence;
  12. typedef void(^splashSuccessGetMateria)(CSJMaterialMeta *materialMeta, NSNumber *isCache, NSDictionary *extraInfo);
  13. typedef void(^splashGetMateria)(CSJMaterialMeta *materialMeta, BUMaterialMetaStatus status);
  14. typedef void(^splashFailGetMateria)(NSError *error, BOOL timeOut, NSNumber *isCache, NSDictionary *extraInfo);
  15. typedef void(^failure)(NSError *error, NSDictionary *extraInfo);
  16. typedef void(^splashCacheLoadError)(BUMaterialMetaStatus status);
  17. @interface CSJSplashPreloader : NSObject
  18. @property (nonatomic, assign) NSTimeInterval timeout;
  19. + (instancetype)sharedPreloader;
  20. + (id<BUPersistenceProtocol>)defaultPersistence;
  21. - (void)materialMetaForSplash:(CSJAdSlot *)slot sucess:(splashSuccessGetMateria)success failure:(splashFailGetMateria)failure;
  22. - (void)deleteSplashDiskData;
  23. @end