MATableViewAdPlacer.h 939 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // MATableViewAdPlacer.h
  3. // AppLovinSDK
  4. //
  5. // Created by Ritam Sarmah on 2/18/22.
  6. //
  7. #import <AppLovinSDK/MACustomAdPlacer.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. /**
  10. * This class loads and places native ads into a corresponding @c UITableView. The table view's original data source and delegate methods are wrapped by this class in order to automatically insert ad rows, while maintaining the existing table view's behavior.
  11. */
  12. @interface MATableViewAdPlacer : MACustomAdPlacer
  13. /**
  14. * Initializes an ad placer for use with the provided table view.
  15. *
  16. * @param tableView A table view to place ads in.
  17. * @param settings An ad placer settings object.
  18. */
  19. + (instancetype)placerWithTableView:(UITableView *)tableView settings:(MAAdPlacerSettings *)settings;
  20. - (instancetype)initWithSettings:(MAAdPlacerSettings *)settings NS_UNAVAILABLE;
  21. - (instancetype)init NS_UNAVAILABLE;
  22. + (instancetype)new NS_UNAVAILABLE;
  23. @end
  24. NS_ASSUME_NONNULL_END