Marketing Cloud SDK / com.salesforce.marketingcloud.events / EventManager / customEvent

customEvent

@JvmStatic fun customEvent(name: String, attributes: Map<String, Any> = mapOf(), producer: Producer = Producer.PUSH): Event?

A CustomEvent for use in Behavioral Triggers for InApp Messages.

Parameters

name - is the Event.name used to identify the event. This value must match the Event Key entered in the Marketing Cloud UI.

attributes - key-value pairs of attributes associated with the Event.

Return
Event

@JvmStatic fun customEvent(name: String, attributes: Map<String, Any>): Event?
@JvmStatic fun customEvent(name: String): Event?