CSJSplashOuterCallTracker.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // CSJSplashOuterCallTracker.h
  3. // CSJAdSDK
  4. //
  5. // Created by cuiyanan on 2019/11/17.
  6. // Copyright © 2019 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class CSJMaterialMeta;
  10. @class CSJAdSlot;
  11. typedef NS_ENUM(NSInteger,BUSplashAvailableType){
  12. BUSplashAvailableType_loaclCheckInvalid = 0, //物料存储时长超时
  13. BUSplashAvailableType_serverCheckInvalid = 1, //服务端校验不通过
  14. BUSplashAvailableType_serverCheckValid = 2 //服务端验证可用
  15. };
  16. @interface CSJSplashOuterCallTracker : NSObject
  17. //外部调用 timeOut 传递开发者时长
  18. + (void)logOuterCallWithAdSlot:(CSJAdSlot *)adslot timeout:(NSTimeInterval)timeout;
  19. //返回外部调用
  20. + (void)logOuterCallSendWithAdSlot:(CSJAdSlot *)adslot materialMeta:(CSJMaterialMeta *)materialMeta splashExtraInfoDic:(NSDictionary *)splashExtraInfoDic;
  21. //外部调用无返回
  22. + (void)logOuterCallNoRspWithAdSlot:(CSJAdSlot *)adslot error:(NSError *)error;
  23. //外部调用无返回增加额外参数
  24. + (void)logOuterCallNoRspWithAdSlot:(CSJAdSlot *)adslot error:(NSError *)error extraDic:(NSDictionary *)extraDic;
  25. //加载超时
  26. + (void)logLoadTimeoutWithAdSlot:(CSJAdSlot *)adslot;
  27. //加载素材失败
  28. + (void)logLoadCreativeErrorWithSlot:(CSJAdSlot *)slot
  29. materialMeta:(CSJMaterialMeta *)materialMeta
  30. imageUrl:(NSURL *)imageURL
  31. error:(NSError *)error;
  32. //物料缓存校验结果上报
  33. + (void)logLoadMaterialInvalidWithSlot:(CSJAdSlot *)slot
  34. materialMeta:(CSJMaterialMeta *)cacheMaterialMeta
  35. availabeType:(BUSplashAvailableType)availabeType
  36. timeOutDuration:(NSNumber *)timeOutDuration;
  37. // log接口
  38. + (void)logTimeDiffTag:(NSString *)tag label:(NSString *)label startTime:(CFTimeInterval)startTime materialMeta:(CSJMaterialMeta *)materialMeta;
  39. @end