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)
| Parameter | Type | Description |
|---|---|---|
eventBufferingEnabled | boolean | Set true to enable event buffering. Set false to send events immediately (default). |
Enable event buffering
Call setEventBufferingEnabled(true) on your AdTraceConfig instance.
Example
- Java
- Kotlin
- Javascript
config.setEventBufferingEnabled(true);
config.setEventBufferingEnabled(true)
config.setEventBufferingEnabled(true);