Package-level declarations

Different types of events that can be tracked with Snowplow.

Types

Link copied to clipboard
abstract class AbstractEvent : Event

Base AbstractEvent class which contains common elements that can be added to all events:

Link copied to clipboard

Abstract class which contains common elements to all "primitive" events, i.e. events that are not based on a schema, such as Structured events.

Link copied to clipboard

Abstract class which contains common elements to all self-describing events, i.e. events that are based on a schema. Examples include SelfDescribing, ScreenView, and Foreground events.

Link copied to clipboard

A background transition event.

Link copied to clipboard
class ConsentDocument(documentId: String, documentVersion: String) : AbstractSelfDescribing

A consent document event.

Link copied to clipboard
class ConsentGranted(expiry: String, documentId: String, documentVersion: String) : AbstractSelfDescribing

A consent granted event.

Link copied to clipboard
class ConsentWithdrawn(all: Boolean, documentId: String, documentVersion: String) : AbstractSelfDescribing

A consent withdrawn event.

Link copied to clipboard

A deep-link received in the app.

Link copied to clipboard

An ecommerce event.

Link copied to clipboard

An ecommerce item event.

Link copied to clipboard
interface Event

The Event interface

Link copied to clipboard

A foreground transition event.

Link copied to clipboard
class ListItemView(var index: Int, var itemsCount: Int?) : AbstractSelfDescribing

Event tracking the view of an item in a list. If screen engagement tracking is enabled, the list item view events will be aggregated into a screen_summary entity and won't be sent as separate events to the collector.

Link copied to clipboard

Event that represents the reception of a push notification (or a locally generated one).

Link copied to clipboard
class MessageNotificationAttachment(identifier: String, type: String, url: String) : HashMap<String, Any>

Attachment object that identifies an attachment in the MessageNotification.

Link copied to clipboard

Trigger that caused the message notification.

Link copied to clipboard

A PageView event. This event has been designed for web trackers, and is not suitable for mobile apps.

Link copied to clipboard
Link copied to clipboard
class ScreenView @JvmOverloads constructor(name: String, screenId: UUID? = null) : AbstractSelfDescribing

A ScreenView event.

Link copied to clipboard
class ScrollChanged(var yOffset: Int? = null, var xOffset: Int? = null, var viewWidth: Int? = null, var viewHeight: Int? = null, var contentWidth: Int? = null, var contentHeight: Int? = null) : AbstractSelfDescribing

Event tracked when a scroll view's scroll position changes. If screen engagement tracking is enabled, the scroll changed events will be aggregated into a screen_summary entity and won't be sent as separate events to the collector.

Link copied to clipboard

A SelfDescribing event.

Link copied to clipboard
class Structured(category: String, action: String) : AbstractPrimitive

A Structured event.

Link copied to clipboard
class Timing(category: String, variable: String, timing: Int) : AbstractSelfDescribing

A timing event.

Link copied to clipboard
class TrackerError(source: String, message: String, throwable: Throwable? = null) : AbstractSelfDescribing

An error event representing an exception, error or warning message in the app.