markIntervalStart

fun markIntervalStart(intervalType: String, contentId: String, elapsedMillis: Long? = null, timeoutSeconds: Long = 43200)

Marks the start of a special interval.

See also

Parameters

intervalType

custom string to identify the what the marked interval represents. E.g. it can be "ad" or "content_video". At most one interval of a given type can be open at any given point in time.

contentId

a domain specific custom identifier of the content of the marked interval.

elapsedMillis

This parameter can be used for marking intervals that actually started before the method call. If you do not specify it, the ExperienceSDK will use the current time as the timestamp. To shift the timestamp, set this parameter to the amount of elapsed milliseconds since the last device boot at the actual time when the interval started.

timeoutSeconds

Number of seconds after which the interval will automatically be considered closed by the backend, even if no ending signal is received.