trackEvent

open fun trackEvent(@NonNull event: String)

Track an event. You can call this method from any thread. Batch must be started at some point, or events won't be sent to the server.

Parameters

event

The event name.


open fun trackEvent(@NonNull event: String, @Nullable attributes: BatchEventAttributes)

Track an event. You can call this method from any thread. Batch must be started at some point, or events won't be sent to the server.

Parameters

event

The event name.

attributes

The event attributes. Can be null.