Class Analytics


  • public final class Analytics
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean trackCustomEvent​(java.lang.String eventName, java.util.Map<java.lang.String,​java.lang.String> eventProperties)
      Reports custom event to Dashboard.
      static boolean trackPurchaseEvent​(PurchaseData purchaseData)
      Reports in-app purchase to Dashboard.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • trackCustomEvent

        public static boolean trackCustomEvent​(java.lang.String eventName,
                                               java.util.Map<java.lang.String,​java.lang.String> eventProperties)
        Reports custom event to Dashboard.
        Parameters:
        eventName - Name of custom event.
        eventProperties - Properties of custom event.
        Returns:
        true, if event and its properties are valid.
      • trackPurchaseEvent

        public static boolean trackPurchaseEvent​(PurchaseData purchaseData)
        Reports in-app purchase to Dashboard.
        Parameters:
        purchaseData - Purchase data.
        Returns:
        True if operation was successful, otherwise false.