Event

class Event(val type: EventType, 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(type: String, properties: Map<EventKey, Serializable>?)
constructor(type: EventType)
constructor(type: String)
constructor(type: EventType, properties: Map<EventKey, Serializable>?)

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: String): Event

Properties

Link copied to clipboard
Link copied to clipboard