public class AATKitConfiguration extends AATKitRuntimeConfiguration
| Constructor and Description |
|---|
AATKitConfiguration(Application application)
Creates the default Configuration object to be used when initializing AATKit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAlternativeBundleId(String alternativeBundleId)
Sets the fake bundle ID for testing purposes.
|
void |
setDelegate(AATKit.Delegate delegate)
Sets the delegate notifying about AATKit events.
|
void |
setInitialRules(String initialRules)
Allows setting of ad rules that will be used before real rules from the server are downloaded.
|
void |
setShouldCacheRules(boolean shouldCacheRules)
Allows the AATKit to preserve last downloaded ad rules when the application is closed.
|
void |
setShouldReportUsingAlternativeBundleId(boolean shouldReportUsingAlternativeBundleId)
If used together with
setAlternativeBundleId(String) allows to set if the same fake bundle ID should be used in reporting. |
void |
setShouldSkipRules(boolean shouldSkipRules)
Sets if networks without TCF2 consent should be skipped (only works if TCF2 compliant CMP is used).
|
void |
setTestModeAccountId(int testModeAccountId)
Enables AATKit test ads that should be for testing - only during development.
|
void |
setUseDebugShake(boolean useDebugShake)
Sets if the debug screen should be displayed after shaking the device.
|
String |
toString() |
setConsent, setConsentRequired, setUseGeoLocationpublic AATKitConfiguration(Application application)
application - Reference to Application.public String toString()
toString in class AATKitRuntimeConfigurationpublic void setInitialRules(String initialRules)
initialRules - String containing the rules to be used.public void setShouldCacheRules(boolean shouldCacheRules)
shouldCacheRules - True to enable, false to disable.public void setAlternativeBundleId(String alternativeBundleId)
setTestModeAccountId(int)).alternativeBundleId - Bundle ID to be used during testing.public void setShouldReportUsingAlternativeBundleId(boolean shouldReportUsingAlternativeBundleId)
setAlternativeBundleId(String) 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.shouldReportUsingAlternativeBundleId - If the fake bundleId should be used in reporting.public void setTestModeAccountId(int testModeAccountId)
setAlternativeBundleId(String)).testModeAccountId - Test application id obtained from addapptr.com account.public void setDelegate(AATKit.Delegate delegate)
delegate - Delegate allowing to listen for AATKit events.public void setUseDebugShake(boolean useDebugShake)
useDebugShake - True to enable, false to disable.public void setShouldSkipRules(boolean shouldSkipRules)
shouldSkipRules - True to enable rule skipping, false to disable.