Code Examples
  • 16 Apr 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Code Examples

  • Dark
    Light
  • PDF

Article summary

Events

Creating Events

Webtrends events can be sent manually from anywhere within your code. This allows far greater control than simply using automatic lifecycle events. With manual events, you are able to customize the parameters, helping you to analyze your app usage in any level of detail.

All of the event generation methods are documented in the Event Collection Methods document.

Sending Events

The Webtrends Mobile SDK for Android will automatically send events when one of the following conditions occur:

  • The number of events stored locally exceeds the threshold
  • The time interval for sending events has expired

However, events can be sent manually at any time from within your code. To do so, just use one of these two methods:

  • transmitEvents()
  • transmitAllEvents()

Additionally, you may pause and resume event transmission using the pauseEventTransmission() and resumeEventTransmission() methods. When event sending is resumed, any events stored locally will be sent to data collection.


Was this article helpful?