|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.analytics.tracking.android.GAServiceManager
public class GAServiceManager
This class manages the service side of the Google Analytics SDK. Its
responsibilities include managing the AnalyticsStore
and controlling
dispatch.
Sample calls:
GAServiceManager.getInstance().dispatch(); GAServiceManager.getInstance().setDispatchPeriod(180);
Method Summary | |
---|---|
void |
dispatch()
Dispatches queued hits (view, events, or transactions) to Google Analytics if a network connection is available. |
static GAServiceManager |
getInstance()
|
void |
setDispatchPeriod(int dispatchPeriodInSeconds)
Sets dispatch period for the dispatcher. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GAServiceManager getInstance()
public void dispatch()
ServiceManager
dispatch
in interface ServiceManager
public void setDispatchPeriod(int dispatchPeriodInSeconds)
ServiceManager
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 ServiceManager.dispatch()
. If zero, dispatching will happen on
every hit.
setDispatchPeriod
in interface ServiceManager
dispatchPeriodInSeconds
- the new dispatch period
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |