com.trademob.tracking
Class TMUniversalTracking

java.lang.Object
  extended by com.trademob.tracking.TMUniversalTracking

public class TMUniversalTracking
extends java.lang.Object


Constructor Summary
TMUniversalTracking(Context aContext)
          Constructor of the Tracking Needs a Valid app Context to set up properly
 
Method Summary
 void trackActionAlways(java.lang.String aAction, int aValue)
          Method to track an action only once during the lifetime of the app or at least until the memory of the app is cleared
 void trackActionOnce(java.lang.String aAction, int aValue)
          Method to track a action every time the method is called
 void trackAppload()
          Method to track an appload event.
 void trackReferrerStart(java.lang.String aQuery)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMUniversalTracking

public TMUniversalTracking(Context aContext)
Constructor of the Tracking Needs a Valid app Context to set up properly

Parameters:
aContext: - a Valid app Context
Method Detail

trackAppload

public void trackAppload()
Method to track an appload event. Usually implement this in the onCreate() method of your main activity. Wherever you implement this be sure to call this only once during the app is open


trackActionAlways

public void trackActionAlways(java.lang.String aAction,
                              int aValue)
Method to track an action only once during the lifetime of the app or at least until the memory of the app is cleared

Parameters:
aAction: - A String of your choice to recognize the action later, must be unique within the app

trackActionOnce

public void trackActionOnce(java.lang.String aAction,
                            int aValue)
Method to track a action every time the method is called

Parameters:
aAction: - A String of your choice to recognize the action later, must be unique within the app

trackReferrerStart

public void trackReferrerStart(java.lang.String aQuery)