initialize

fun initialize(context: Context, config: EventTrackerConfig)

Initialize the library. Safe to call multiple times; subsequent calls are no-ops and log a warning. Must be called before any track or identify call.

Parameters

context

Application context. The library retains only the application context, never an activity context.

config

Immutable configuration produced by EventTrackerConfig.Builder.

Throws

if config has zero adapters.