public interface ServiceManager
Modifier and Type | Method and Description |
---|---|
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.
|
void |
updateConnectivityStatus(boolean connected)
Updates the network connection status in the ServiceManager.
|
void dispatch()
void setDispatchPeriod(int dispatchPeriodInSeconds)
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.dispatchPeriodInSeconds
- the new dispatch periodvoid updateConnectivityStatus(boolean connected)
connected
- true if there is a valid network connection