Event

fun Event(elapsedMillis: Long = Clock.elapsedRealTime(), timeZoneId: String = Clock.timeZone().id, customProperties: MutableMap<String, String?> = mutableMapOf())

Parameters

elapsedMillis

This parameter can be used to track events that actually happened 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 tracked event happened.

timeZoneId

The time zone ID, the default value is the one provided by the system.

customProperties

Custom property map that will be attached to the event.