public interface

AppLovinEventService

com.applovin.sdk.AppLovinEventService

Class Overview

Service used for tracking various analytical events.

Summary

Public Methods
abstract Map<String, Object> getSuperProperties()
Returns a map representing the currently set super properties that are passed up on events.
abstract void setSuperProperty(Object superProperty, String key)
Set a super property to be recorded with all future events.
abstract void trackCheckout(String transactionId, Map<String, String> parameters)
Track a checkout / standard purchase.
abstract void trackEvent(String eventName)
Track an event without additional data.
abstract void trackEvent(String eventName, Map<String, String> parameters)
Track an event with additional data.
abstract void trackInAppPurchase(Intent purchaseIntent, Map<String, String> parameters)
Track an in app purchase.

Public Methods

public abstract Map<String, Object> getSuperProperties ()

Returns a map representing the currently set super properties that are passed up on events.

public abstract void setSuperProperty (Object superProperty, String key)

Set a super property to be recorded with all future events.

If the super property is set to null, will remove the super property from being recorded with all future events.

Parameters
superProperty The super property value for the given super property key. Valid types include String, Integer, Long, Double, Float, java.util.Date, android.net.Uri, java.util.List, Map. Setting it to null will remove that super property from being recorded with all future events.
key The super property key for the given super property.

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

Track a checkout / standard purchase.

Parameters
transactionId 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, PRODUCT_IDENTIFIER, REVENUE_AMOUNT and REVENUE_CURRENCY.

public abstract void trackEvent (String eventName)

Track an event without additional data.

Where applicable, it is suggested to use one of the predefined strings provided in AppLovinEventTypes for the event and parameter key.

Parameters
eventName A string representing the event to track.

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

Track an event with additional data.

Where applicable, it is suggested to use one of the predefined strings provided in AppLovinEventTypes for the event and parameter key.

Parameters
eventName A string representing the event to track.
parameters A map containing key-value pairs further describing this event.

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, PRODUCT_IDENTIFIER, REVENUE_AMOUNT and REVENUE_CURRENCY.