com.google.analytics.tracking.android
Interface ServiceManager

All Known Implementing Classes:
GAServiceManager

public interface ServiceManager

Public interface to the back end portions of the Google Analytics SDK.


Method Summary
 void dispatch()
          Dispatches queued hits (view, events, or transactions) to Google Analytics if a network connection is available.
 void setDispatchPeriod(int dispatchPeriodInSeconds)
          Sets dispatch period for the dispatcher.
 

Method Detail

dispatch

void dispatch()
Dispatches queued hits (view, events, or transactions) to Google Analytics if a network connection is available.


setDispatchPeriod

void setDispatchPeriod(int dispatchPeriodInSeconds)
Sets dispatch period for the dispatcher. The dispatcher will check for hits to dispatch every dispatchPeriod seconds. If a negative dispatch period is given, automatic dispatch will not be enabled, and the application will need to dispatch events manually using dispatch(). If zero, dispatching will happen on every hit.

Parameters:
dispatchPeriodInSeconds - the new dispatch period