|
DarkMatter
4.1.0
|
Interface implemented by classes that can send analytics events. More...
Public Member Functions | |
| void | sendAnalyticsEvent (String eventName, String category, String subcategory1, String subcategory2, String value, String... customParameters) |
| Creates and sends a new Analytics event with the given n, st1, st2, st3, v, and cp parameters respectively. More... | |
| void | sendPurchaseEvent (String productID, float usdPrice, String transactionTimeInMillis, String transactionID, String... customParameters) |
| Creates and sends a new In-App Purchase event with "iap", "IAP", "IAP_SUCCESS", productID, and usdPrice * 100 as the n, st1, st2, st3, and v parameters respectively. More... | |
Interface implemented by classes that can send analytics events.
| void sendAnalyticsEvent | ( | String | eventName, |
| String | category, | ||
| String | subcategory1, | ||
| String | subcategory2, | ||
| String | value, | ||
| String... | customParameters | ||
| ) |
Creates and sends a new Analytics event with the given n, st1, st2, st3, v, and cp parameters respectively.
| eventName | The analytic shortname. |
| category | st1 shortname |
| subcategory1 | st2 shortname |
| subcategory2 | st3 shortname |
| value | The main value parameter used by most events. |
| customParameters | Additional event parameters. |
Implemented in AnalyticsAPI.
| void sendPurchaseEvent | ( | String | productID, |
| float | usdPrice, | ||
| String | transactionTimeInMillis, | ||
| String | transactionID, | ||
| String... | customParameters | ||
| ) |
Creates and sends a new In-App Purchase event with "iap", "IAP", "IAP_SUCCESS", productID, and usdPrice * 100 as the n, st1, st2, st3, and v parameters respectively.
| productID | The unique product ID that the store uses. |
| usdPrice | The price of the product on the store in US dollars. |
| transactionTimeInMillis | The time in milliseconds from when the user clicked on the product to buy it to when it was successful. It is sent in the custom parameters. |
| transactionID | The unique identifier for the transaction. |
| customParameters | Contains any other custom parameters you wish to send. |
Implemented in AnalyticsAPI.