By default, AATKit will display a popup box with information about AATKit’s version and the currently visible ads whenever the user has heavily shaken the device. You can disable or enable this behaviour after initializing AATKit.
We encourage you to keep the shake debug enabled to track down possible bad-quality ads.
Enable Shake Debug
// [IMPORTANT] AATKit must be initialised firstlet configuration =AATConfiguration()AATSDK.initAATKit(with: configuration)AATSDK.enableDebugScreen()
// [IMPORTANT] AATKit must be initialised first
AATConfiguration *configuration = [[AATConfiguration alloc] init];
[AATSDK initAATKitWith:configuration];
[AATSDK enableDebugScreen];
Disable Shake Debug
// [IMPORTANT] AATKit must be initialised firstlet configuration =AATConfiguration()AATSDK.initAATKit(with: configuration)AATSDK.disableDebugScreen()
// [IMPORTANT] AATKit must be initialised first
AATConfiguration *configuration = [[AATConfiguration alloc] init];
[AATSDK initAATKitWith:configuration];
[AATSDK disableDebugScreen];
Customize Shake Debug
You can control which data should be displayed in the shake debug screen by the following:
You can retrieve the debug info that will be displayed on the shake debug screen by using the following API:
// Retrieve debug info as an AATDebugInfo instancelet debugInfo = AATSDK.getDebugInfoObject()// Retrieve debug info as a stringlet debugInfoString = AATSDK.getDebugInfo()
// Retrieve debug info as an AATDebugInfo instance
AATDebugInfo *debugInfo = [AATSDK getDebugInfoObject];
// Retrieve debug info as a string
NSString *debugInfoString = [AATSDK getDebugInfo];