AATKitConfiguration class
Used to set up AATKit.
- Inheritance
-
- Object
- AATKitRuntimeConfiguration
- AATKitConfiguration
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- AATKitConfiguration({bool? isConsentRequired, bool? isUseGeoLocation, Consent? consent, String? alternativeBundleId, String? initialRules, bool? shouldCacheRules, bool? shouldReportUsingAlternativeBundleId, bool? shouldSkipRules, bool? isUseDebugShake, int? testModeAccountId, AATKitAdNetworkOptions? adNetworkOptions, AATKitDelegate? delegate})
-
AATKitConfiguration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- adNetworkOptions ↔ AATKitAdNetworkOptions?
-
Object describing advanced ad-network specific configurations.
getter/setter pair
- alternativeBundleId ↔ String?
-
Sets the fake bundle ID for testing purposes. It should only be used during development.
Cannot be used together with classic test mode (testModeAccountId).
getter/setter pair
- consent ↔ Consent?
-
getter/setter pairinherited
- delegate ↔ AATKitDelegate?
-
Delegate notifying about AATKit events.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialRules ↔ String?
-
Allows setting of ad rules that will be used before real rules from the server are downloaded.
getter/setter pair
- isConsentRequired ↔ bool?
-
getter/setter pairinherited
- isUseDebugShake ↔ bool?
-
Sets if the debug screen should be displayed after shaking the device. Enabled by default.
getter/setter pair
- isUseGeoLocation ↔ bool?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldCacheRules ↔ bool?
-
Allows the AATKit to preserve last downloaded ad rules when the application is closed.
Such rules will be re-used next time the application is started, before new ones get downloaded.
Enabled by default.
getter/setter pair
- shouldReportUsingAlternativeBundleId ↔ bool?
-
If used together with
setAlternativeBundleId
allows to set if the same fake bundle ID should be used in reporting. True by default. If set to false, real bundle ID will be used in reporting even if fake one is used for testing.getter/setter pair - shouldSkipRules ↔ bool?
-
Sets if networks without TCF2 consent should be skipped (only works if TCF2 compliant CMP is used).
False by default.
getter/setter pair
- testModeAccountId ↔ int?
-
Enables AATKit test ads that should be for testing - only during development.
Cannot be used with alternative bundle ID (alternativeBundleId).
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited