AdsConfig constructor

const AdsConfig({
  1. PlatformAdIds? directInterstitialIds,
  2. bool directInterstitialEnabled = true,
  3. PlatformAdIds? bannerIds,
  4. PlatformAdIds? interstitialIds,
  5. PlatformAdIds? nativeIds,
  6. PlatformAdIds? appOpenIds,
  7. PlatformAdIds? rewardedIds,
  8. bool bannerEnabled = true,
  9. bool interstitialEnabled = true,
  10. bool nativeEnabled = false,
  11. bool appOpenEnabled = true,
  12. bool rewardedEnabled = true,
  13. bool adsEnabled = true,
  14. int interstitialAfter = 2,
  15. int maxRetryAttempts = 2,
  16. Duration retryBaseDelay = const Duration(seconds: 10),
  17. bool preloadEnabled = true,
  18. Duration connectivityRecheckInterval = const Duration(minutes: 3),
})

Implementation

const AdsConfig({
  this.directInterstitialIds,
  this.directInterstitialEnabled = true,
  this.bannerIds,
  this.interstitialIds,
  this.nativeIds,
  this.appOpenIds,
  this.rewardedIds,
  this.bannerEnabled = true,
  this.interstitialEnabled = true,
  this.nativeEnabled = false,
  this.appOpenEnabled = true,
  this.rewardedEnabled = true,
  this.adsEnabled = true,
  this.interstitialAfter = 2,
  this.maxRetryAttempts = 2,
  this.retryBaseDelay = const Duration(seconds: 10),
  this.preloadEnabled = true,
  this.connectivityRecheckInterval = const Duration(minutes: 3),
});