Profile

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

Constructors

Link copied to clipboard
constructor(externalId: String? = null, email: String? = null, phoneNumber: String? = null, properties: Map<ProfileKey, Serializable>? = null)
constructor(properties: Map<ProfileKey, Serializable>?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun merge(other: Profile): Profile

Merges attributes from another object into this one

Link copied to clipboard
fun setEmail(email: String?): Profile
Link copied to clipboard
fun setExternalId(identifier: String?): Profile
Link copied to clipboard
fun setPhoneNumber(phoneNumber: String?): Profile
Link copied to clipboard
open override fun setProperty(key: ProfileKey, value: Serializable?): Profile

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?): Profile

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