MACustomAdPlacer.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // MACustomAdPlacer.h
  3. // AppLovinSDK
  4. //
  5. // Created by Ritam Sarmah on 3/17/22.
  6. //
  7. #import <AppLovinSDK/MAAdPlacer.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. /**
  10. * This subclass of @c MAAdPlacer contains additional functionality that isn't necessarily needed for the use of @c MAAdPlacer on its own, i.e., auto-refresh and look-ahead.
  11. *
  12. * @warning @c MACustomAdPlacer should only be used via its subclasses, e.g., @c MACollectionViewAdPlacer and @c MATableViewAdPlacer, since it contains methods that must be implemented based on the specific UI component.
  13. */
  14. @interface MACustomAdPlacer : MAAdPlacer
  15. /**
  16. * The number of off-screen items after the last visible item to consider for ad placement in a content stream. This allows upcoming ad positions to be ready before they are visible to the user.
  17. *
  18. * This can be disabled by setting to 0. Defaults to 8.
  19. */
  20. @property (nonatomic, assign) NSUInteger lookAhead;
  21. /**
  22. * Allows updates to be made safely to a stream by temporarily disabling auto-reload during data modification.
  23. */
  24. - (void)pauseForUpdates:(void (^)(void))updates;
  25. - (instancetype)init NS_UNAVAILABLE;
  26. + (instancetype)new NS_UNAVAILABLE;
  27. @end
  28. NS_ASSUME_NONNULL_END