ScrollChanged

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.

Schema: iglu:com.snowplowanalytics.mobile/scroll_changed/jsonschema/1-0-0

Constructors

Link copied to clipboard
constructor(yOffset: Int? = null, xOffset: Int? = null, viewWidth: Int? = null, viewHeight: Int? = null, contentWidth: Int? = null, contentHeight: Int? = null)

Functions

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard
fun trueTimestamp(trueTimestamp: Long?): AbstractEvent

Set the custom timestamp of the event.

Properties

Link copied to clipboard

The height of the content of the scroll view in pixels.

Link copied to clipboard

The width of the content of the scroll view in pixels.

Link copied to clipboard
open override var contexts: List<SelfDescribingJson>
Link copied to clipboard
open override val dataPayload: Map<String, Any?>

The payload for the event.

Link copied to clipboard
Link copied to clipboard

Used for events whose properties are added as entities, e.g. Ecommerce events

Link copied to clipboard
open override val schema: String
Link copied to clipboard
open override var trueTimestamp: Long?
Link copied to clipboard

The height of the scroll view in pixels.

Link copied to clipboard

The width of the scroll view in pixels.

Link copied to clipboard
var xOffset: Int?

Horizontal scroll offset in pixels.

Link copied to clipboard
var yOffset: Int?

Vertical scroll offset in pixels.