Skip to main content

Event buffering

By default, the Adtrace SDK sends event information as soon as a user triggers an event. If your app tracks many events, you can enable event buffering to store events locally and send them in one batch once per minute.

Set this option on your AdTraceConfig instance before you call AdTrace.onCreate(). See Configuration for how to create the config.

Method signature

public void setEventBufferingEnabled(boolean eventBufferingEnabled)
ParameterTypeDescription
eventBufferingEnabledbooleanSet true to enable event buffering. Set false to send events immediately (default).

Enable event buffering

Call setEventBufferingEnabled(true) on your AdTraceConfig instance.

Example

config.setEventBufferingEnabled(true);