AppsFlyerPurchaseEvent
data class AppsFlyerPurchaseEvent(val name: String, val revenue: Double, val currency: String, val contentId: String? = null, val contentType: String? = null, val quantity: Int? = null, val orderId: String? = null, val parameters: Map<String, AnalyticsValue> = emptyMap()) : Event(source)
A purchase as AppsFlyer's predefined af_purchase, with the revenue under af_revenue, which is what AppsFlyer counts as revenue and forwards to ad networks for ROAS.
A final class, so an app event can't be one. The app's AppsFlyer factory builds one from its own event and sends it through PurchaseEventTracker.
Constructors
Properties
Functions
Link copied to clipboard
The event values for af_purchase: AppsFlyerPurchaseEvent.parameters, then the predefined ones. An absent optional is left out rather than sent empty. Public because a custom AppsFlyerEventTracker almost always needs it.