Dash Stats Docs


public class SessionTimer

Keeps track of how long the user actively spends in the app, based on Activity onResume() and onPause() calls.


public synchronized void onPause(Activity activity)
public synchronized void onResume(Activity activity)
public synchronized void setEnabled(boolean enabled)
public synchronized void updatePhoneInfo(PhoneInfo.Builder builder)

We want to get the time values in one synchronized block, so that these values are sent to the server in sync relative to each other. Hence this method, instead of individual getter methods.