onAnalyticEvent

abstract fun onAnalyticEvent(name: String, params: Map<String, Any?>, context: Context)

This callback is invoked when the flow reports a custom analytics event intended for your own analytics. Events intended only for Adapty analytics are not delivered here.

The default implementation is a no-op — override it to forward the event to your own analytics pipeline.

Parameters

name

The name of the analytics event.

params

Additional parameters associated with the event.

context

A UI Context within which the event occurred.