createEventWithData

open override fun createEventWithData(eventType: String, properties: Map<String, Any?>)

Registers an event of the specified type with the given data. The data object can contain a nested structure to be 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.


open override fun createEventWithData(eventType: String, properties: Map<String, Any?>, callback: Runnable?)

Registers an event of the specified type with the given data. The data object can contain a nested structure to be 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.

callback

The Callback


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

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


open override fun createEventWithData(eventType: String, properties: Map<String, Any?>, context: Activity, callback: Runnable?)

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 when results are ready