cdp / com.salesforce.marketingcloud.cdp.events / Event

Event

abstract class Event

This class provides factory methods for basic Event creation.

Companion Object Functions

engagement

Creates an engagement event.

fun engagement(eventType: String, eventAttributes: Map<String, Any?>? = null): Event?

getAdvertisingId

Retrieves the advertising identifier and publishes the response to the provided listener.

fun getAdvertisingId(context: Context, listener: AdvertisingIdListener): Unit

profile

Creates a profile event.

fun profile(eventType: String, eventAttributes: Map<String, Any?>? = null): Event?