ConfigBuilder class abstract interface

Builder in charge of making it easy to configure the SDK. All the methods are optional to call. This class can be used either when manualConfig is ON or OFF. If it's off, only Unfetchable configs will be built into the configuration. These configurations are:

  • Consent configurations.

If it's ON, you can add unitConfigs and APP global target Configs.

Constructors

ConfigBuilder(String publisherName)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAppTargeting({required String storeUrl, required String domain, required Set<String>? appContextKeywords}) → void
Adds keywords for better ad targeting.
addBannerConfiguration({required String configurationId, required String bannerUnitId, required String bannerConfigId, required List<AdSize> sizeList, int autoRefreshMillis = 30000, bool isCapped = false, int adAmountPerTimeSlot = 1, int timeSlotSize = 3600000, List<String>? keywords, Map<String, Set<String>>? unitFPID, bool closeButtonIsActive = false, String closeButtonImageURL = "", bool wrapperWrapContent = true, bool wrapperMatchParentHeight = false, bool wrapperMatchParentWidth = false, int wrapperHeight = -1, int wrapperWidth = -1, WrapperPosition wrapperPosition = WrapperPosition.center}) → void
Adds a banner configuration to the SDK.
addCMPData({required int id}) → void
Caches the CMP needed data to be shown.
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}) → void
Adds an infinite scroll configuration to the SDK.
addInterstitialConfiguration({required String configurationId, required String interstitialUnitId, required String interstitialConfigId, int autoRefreshMillis = 30000, bool isCapped = false, int adAmountPerTimeSlot = 1, int timeSlotSize = 3600000, List<String>? keywords, Map<String, Set<String>>? unitFPID}) → void
Adds an interstitial configuration to the SDK.
addPrebidServerConfig({bool useRealAuctionServer = false}) → void
Adds Prebid Server configuration.
addVideoInterstitialConfiguration({required String configurationId, required String videoInterstitialUnitId, required String videoInterstitialConfigId, int autoRefreshMillis = 30000, bool isCapped = false, int adAmountPerTimeSlot = 1, int timeSlotSize = 3600000, List<String>? keywords, Map<String, Set<String>>? unitFPID}) → void
Adds a video interstitial configuration to the SDK.
addVideoOutStreamBannerConfiguration({required String configurationId, required String outStreamUnitId, required String outStreamConfigId, required AdSize size, int autoRefreshMillis = 30000, bool isCapped = false, int adAmountPerTimeSlot = 1, int timeSlotSize = 3600000, List<String>? keywords, Map<String, Set<String>>? unitFPID, bool closeButtonIsActive = false, String? closeButtonImageURL, bool wrapperWrapContent = true, bool wrapperMatchParentHeight = false, bool wrapperMatchParentWidth = false, int wrapperHeight = -1, int wrapperWidth = -1, WrapperPosition wrapperPosition = WrapperPosition.center}) → void
Adds a video banner configuration to the SDK.
build() → ConfigEntity
Build's an ConfigEntity data class based on specified configurations to pass to the SDK's R89SDK.initializeWithConfigBuilder method as a configuration parameter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited