Shake Debug

By default, AATKit will display a popup box with information about AATKit’s version and the currently visible ads whenever the device has been heavily shaken by the user. You can disable or enable this behaviour after initializing AATKit.

Debug screen will not be presented on top of fullscreen ads. Instead, once the ad is closed, the debug screen will have information about last presented fullscreen ad.

We encourage to keep the shake debug enabled in order to be able to track down possible bad-quality ads.

Enable Shake Debug

AATKitConfiguration configuration = new AATKitConfiguration(this);
AATKit.init(configuration);
AATKit.enableDebugScreen();

Disable Shake Debug

AATKitConfiguration configuration = new AATKitConfiguration(this);
// to disable shake debug from the very beginning:
configuration.setUseDebugShake(false);
AATKit.init(configuration);
// alternatively, to disable it after initialising AATKit:
AATKit.disableDebugScreen();

Customize Shake Debug

You can control which data should be displayed in the shake debug screen by the following:

AATKitDebugScreenConfiguration debugScreenConfiguration = new AATKitDebugScreenConfiguration(appLogo, "Title");
debugScreenConfiguration.setShowBundleId(true);
debugScreenConfiguration.setShowAvailableNetworks(false);
// configure other available settings as needed
AATKit.configureDebugScreen(debugScreenConfiguration);

Retrieve Debug Info

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 AATKitDebugInfo instance
AATKitDebugInfo info = AATKit.getDebugInfoObject();
// Retrieve debug info as a string
String debugInfoString = AATKit.getDebugInfo();

Last updated