Event

class Event(val metric: EventMetric, properties: Map<EventKey, Serializable>?) : BaseModel<EventKey, Event>

Controls the data that can be input into a map of event attributes recognised by Klaviyo

Constructors

Link copied to clipboard
constructor(metric: String, properties: Map<EventKey, Serializable>?)
constructor(metric: EventMetric)
constructor(metric: String)
constructor(metric: EventMetric, properties: Map<EventKey, Serializable>?)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun setProperty(key: EventKey, value: Serializable?): Event

Adds a custom property to the map. Custom attributes can define any key name that isn't already reserved by Klaviyo

open override fun setProperty(key: String, value: Serializable?): Event

Add a custom property to the map. Custom attributes can define any key name that isn't already reserved by Klaviyo

Link copied to clipboard
fun setValue(value: Double?): Event