MAAdWaterfallInfo.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // MAAdWaterfallInfo.h
  3. // AppLovinSDK
  4. //
  5. // Created by Thomas So on 10/30/21.
  6. //
  7. @class MAAd;
  8. @class MANetworkResponseInfo;
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * This class represents an ad waterfall, encapsulating various metadata such as total latency, underlying ad responses, etc.
  12. */
  13. @interface MAAdWaterfallInfo : NSObject
  14. /**
  15. * The loaded ad, if any, for this waterfall.
  16. */
  17. @property (nonatomic, weak, readonly, nullable) MAAd *loadedAd;
  18. /**
  19. * The ad waterfall name.
  20. */
  21. @property (nonatomic, copy, readonly) NSString *name;
  22. /**
  23. * The ad waterfall test name.
  24. */
  25. @property (nonatomic, copy, readonly) NSString *testName;
  26. /**
  27. * The list of @c MAAdapterResponseInfo info objects relating to each ad in the waterfall, ordered by their position.
  28. */
  29. @property (nonatomic, strong, readonly) NSArray<MANetworkResponseInfo *> *networkResponses;
  30. /**
  31. * The total latency in seconds for this waterfall to finish processing.
  32. */
  33. @property (nonatomic, assign, readonly) NSTimeInterval latency;
  34. - (instancetype)init NS_UNAVAILABLE;
  35. + (instancetype)new NS_UNAVAILABLE;
  36. @end
  37. NS_ASSUME_NONNULL_END