sfmcsdk / com.salesforce.marketingcloud.sfmcsdk.components.events / Event

Event

interface Event

Types

Category

List of possible Category values for sending Events

enum class Category

Producer

List of possible Producer values for sending Events

enum class Producer

Properties

category

The Event category Name. Category contains list of allowed values

open val category: Category

producer

The Event Producer Name . Producer contains list of allowed values

open val producer: Producer

Functions

attributes

The Event attributes for this event.

abstract fun attributes(): Map<String, Any>

name

The name for the event. This value must match the Event Name used when creating the event in the Marketing Cloud UI for any action to result from tracking this event.

abstract fun name(): String

toJson

open fun toJson(): JSONObject

track

Method to track this Event via EventManager to subscriber EventSubscriber

open fun track(): Unit