public interface

AppLovinEventService

com.applovin.sdk.AppLovinEventService

Summary

Public Methods
abstract void trackCheckout(String transactionIdentifier, Map<String, String> parameters)
Track a checkout / standard purchase.
abstract void trackEvent(String eventType)
Track an event of a given type.
abstract void trackEvent(String eventType, Map<String, String> parameters)
Track an event of a given type.
abstract void trackInAppPurchase(Intent purchaseIntent, Map<String, String> parameters)
Track an in app purchase.

Public Methods

public abstract void trackCheckout (String transactionIdentifier, Map<String, String> parameters)

Track a checkout / standard purchase.

Parameters
transactionIdentifier An optional unique identifier for this transaction, as generated by you.
parameters A map containing key-value pairs further describing this event. You should provide, at a minimum, REVENUE_AMOUNT and REVENUE_CURRENCY. We also recommend passing PRODUCT_IDENTIFIER.

public abstract void trackEvent (String eventType)

Track an event of a given type.

For many event types, it is preferable to provide additional data by using trackEvent(String, Map) instead.

Parameters
eventType A string describing this event; can one of the predefined constants defined in AppLovinEventTypes, or a custom string.

public abstract void trackEvent (String eventType, Map<String, String> parameters)

Track an event of a given type.

Parameters
eventType A string describing this event; can one of the predefined constants defined in AppLovinEventTypes, or a custom string.
parameters A dictionary containing key-value pairs further describing this event. Particular data points of interest are provided as "suggested keys" in the doc comment for each event type constant in AppLovinEventTypes.

public abstract void trackInAppPurchase (Intent purchaseIntent, Map<String, String> parameters)

Track an in app purchase.

Parameters
purchaseIntent Intent returned to you by Google Play.
parameters A map containing key-value pairs further describing this event. You should provide, at a minimum, REVENUE_AMOUNT and REVENUE_CURRENCY. We also recommend passing PRODUCT_IDENTIFIER.