customEvent

fun customEvent(name: String, attributes: Map<String, Any> = mapOf(), producer: Event.Producer = SFMC_SDK, category: Event.Category = ENGAGEMENT): Event?

This method helps in creating a Event with provided properties

Parameters

name

Name of the Event

attributes

Attributes of the Event, if any

producer

Producer of Event. Defaults to Producer.SFMC_SDK if not provided

category

Category of Event. Defaults to Category.ENGAGEMENT if not provided