public interface AppLovinEventService
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getSuperProperties()
Returns a map representing the currently set super properties that are passed up on events.
|
void |
setSuperProperty(java.lang.Object superProperty,
java.lang.String key)
Set a super property to be recorded with all future events.
|
void |
trackCheckout(java.lang.String transactionId,
java.util.Map<java.lang.String,java.lang.String> parameters)
Track a checkout / standard purchase.
|
void |
trackEvent(java.lang.String eventName)
Track an event without additional data.
|
void |
trackEvent(java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.String> parameters)
Track an event with additional data.
|
void |
trackInAppPurchase(android.content.Intent purchaseIntent,
java.util.Map<java.lang.String,java.lang.String> parameters)
Track an in app purchase.
|
void setSuperProperty(java.lang.Object superProperty,
java.lang.String key)
If the super property is set to null, will remove the super property from being recorded with all future events.
superProperty - The super property value for the given super property key.
Valid types include String, Integer, Long, Double, Float, Date, Uri, 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.java.util.Map<java.lang.String,java.lang.Object> getSuperProperties()
void trackEvent(java.lang.String eventName)
Where applicable, it is suggested to use one of the predefined strings provided in AppLovinEventTypes for the event and parameter key.
eventName - A string representing the event to track.void trackEvent(java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.String> parameters)
Where applicable, it is suggested to use one of the predefined strings provided in AppLovinEventTypes for the event and parameter key.
eventName - A string representing the event to track.parameters - A map containing key-value pairs further describing this event.void trackInAppPurchase(android.content.Intent purchaseIntent,
java.util.Map<java.lang.String,java.lang.String> 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, AppLovinEventParameters.PRODUCT_IDENTIFIER, AppLovinEventParameters.REVENUE_AMOUNT and AppLovinEventParameters.REVENUE_CURRENCY.void trackCheckout(java.lang.String transactionId,
java.util.Map<java.lang.String,java.lang.String> 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, AppLovinEventParameters.PRODUCT_IDENTIFIER, AppLovinEventParameters.REVENUE_AMOUNT and AppLovinEventParameters.REVENUE_CURRENCY.