addInfiniteScrollConfiguration abstract method

void addInfiniteScrollConfiguration(
  1. {required String configurationId,
  2. required int minItems,
  3. required int maxItems,
  4. required List<String> configsOfAdsToUse,
  5. int variableProbabilityMin = 0,
  6. int variableProbabilityMax = 0,
  7. bool wrapperWrapContent = true,
  8. bool wrapperMatchParentHeight = false,
  9. bool wrapperMatchParentWidth = false,
  10. int wrapperHeight = -1,
  11. int wrapperWidth = -1,
  12. WrapperPosition wrapperPosition = WrapperPosition.center}
)

Adds an infinite scroll configuration to the SDK.

configurationId Configuration ID. minItems Minimum number of items in the row that should be ad-free after last item with an ad shown. maxItems Maximum number of items in the row that must contain at least one ad. variableProbabilityMin and variableProbabilityMax Probability of an item containing an ad (default = 0..0). configsOfAdsToUse List of configurations of ads which should be used in this infinite scroll. wrapperWrapContent Wrap r89Wrapper around the content (ad) (default = true). wrapperMatchParentHeight Match r89Wrapper height with publisher's wrapper height (default = false). wrapperMatchParentWidth Match r89Wrapper width with publisher's wrapper width (default = false). wrapperHeight Change r89Wrapper's height in dp (default = -1). wrapperWidth Change r89Wrapper's width in dp (default = -1). wrapperPosition Change r89Wrapper's position inside of publisher's wrapper (WrapperPosition.CENTER/START/END/TOP/BOTTOM) (default = WrapperPosition.CENTER). useRealAuctionServer Whether to use the real auction server (default = false).

Implementation

void addInfiniteScrollConfiguration({
  required String configurationId,
  required int minItems,
  required int maxItems,
  required List<String> configsOfAdsToUse,
  int variableProbabilityMin = 0,
  int variableProbabilityMax = 0,
  bool wrapperWrapContent = true,
  bool wrapperMatchParentHeight = false,
  bool wrapperMatchParentWidth = false,
  int wrapperHeight = -1,
  int wrapperWidth = -1,
  WrapperPosition wrapperPosition = WrapperPosition.center,
});