createEventAsync

open suspend override fun createEventAsync(eventType: String, properties: Map<String, Any?>, context: Activity?): Result

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

Return

The result of the operation.

Parameters

eventType

The event type.

properties

A map with properties for the event.

context

The current activity.