createEvent

abstract fun createEvent(eventType: String, properties: Map<String, Any?> = mutableMapOf(), context: Activity? = null, callback: Callback? = null)

Registers an event of the specified type with the given data. The data object can contain a nested structure to sent over custom events and/or with Timeline context in order to register timeline events.

The data structure needs to match the structure of the existing EventType

Parameters

eventType

The event type.

properties

A map with properties for the event.

context

The current activity.

callback

The callback function containing information about the operation.