AppsFlyerSubscribeEvent

data class AppsFlyerSubscribeEvent(val name: String, val revenue: Double, val currency: String, val parameters: Map<String, AnalyticsValue> = emptyMap()) : Event(source)

A paid subscription as AppsFlyer's predefined af_subscribe, 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 SubscribeEventTracker.

Constructors

Link copied to clipboard
constructor(name: String, revenue: Double, currency: String, parameters: Map<String, AnalyticsValue> = emptyMap())

Properties

Link copied to clipboard

af_currency, an ISO 4217 code.

Link copied to clipboard
open override val name: String

Usually the app event's own. It isn't sent: AppsFlyer receives af_subscribe.

Link copied to clipboard
open override val parameters: Map<String, AnalyticsValue>

Sent alongside the predefined values; don't use their keys. Usually the app event's own.

Link copied to clipboard

af_revenue.

Functions

Link copied to clipboard

The event values for af_subscribe: AppsFlyerSubscribeEvent.parameters, then the predefined ones. Public because a custom AppsFlyerEventTracker almost always needs it.