onEvent

abstract fun onEvent(event: String, metadata: Map<String, String>? = null)

An event occurred in the SDK.

Parameters

event

event name

metadata

optional dictionary with details about the event that has occurred. Use EventMetadata for metadata existing keys.