reportEvent

inline fun <T> reportEvent(name: String, value: T)

Sends report by event name and event value.

Example:

@Serializable
data class Foo(val bar: String)
YandexMetricaX.reportEvent("event_name", Foo("bar"))

Since

1.4.0

Throws

SerializationException

in case of any encoding-specific error

IllegalArgumentException

if the eventValue input does not comply format's specification