MetaEventTrackerFactory

Turns an event into the Meta calls it should produce, or declines it.

A conversion usually goes to Meta under one of its standard names, from AppEventsConstants. Give it a tracker that makes the call, and a factory that claims the event by its type:

class SignUpEventTracker(
private val event: SignUpFinished,
private val logger: AppEventsLogger,
) : MetaEventTracker {
override suspend fun track() {
logger.logEvent(AppEventsConstants.EVENT_NAME_COMPLETED_REGISTRATION, event.parameters.toMetaParameters())
}
}

Inheritors

Functions

Link copied to clipboard
abstract fun create(event: Event): Resolution<MetaEventTracker>