Package 

Class TrackAllEvents

    • Method Summary

      Modifier and Type Method Description
      static String getScreenName()
      static void trackAppEvent(String state) This is for activityAdding the screen change event in the queue when any screen changeeg MainActivity change to another activity
      static void logScreenEvent(Activity activity, String state) This is for activityAdding the screen change event in the queue when any screen changeeg MainActivity change to another activity
      static void logScreenEvent(Fragment fragment, String state) This is for fragmentAdding the screen change event in the queue when any screen changeeg BlankFragment change to another fragment
      static void logScreenEvent(String state) This is for application closedAdding the screen change event in the queue when any screen changeeg MainActivity change to another activity
      static void logClickEvent(MotionEvent event, Context context) Adding the click event in the queue when user click on the screen
      static boolean getClickStatus()
      • Methods inherited from class java.lang.Object

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

      • trackAppEvent

         static void trackAppEvent(String state)

        This is for activityAdding the screen change event in the queue when any screen changeeg MainActivity change to another activity

        Parameters:
        state - as para
      • logScreenEvent

         static void logScreenEvent(Activity activity, String state)

        This is for activityAdding the screen change event in the queue when any screen changeeg MainActivity change to another activity

        Parameters:
        activity - as para
        state - as para
      • logScreenEvent

         static void logScreenEvent(Fragment fragment, String state)

        This is for fragmentAdding the screen change event in the queue when any screen changeeg BlankFragment change to another fragment

        Parameters:
        fragment - as para
        state - as para
      • logScreenEvent

         static void logScreenEvent(String state)

        This is for application closedAdding the screen change event in the queue when any screen changeeg MainActivity change to another activity

        Parameters:
        state - as para
      • logClickEvent

         static void logClickEvent(MotionEvent event, Context context)

        Adding the click event in the queue when user click on the screen

        Parameters:
        event - as para
        context - as para