com.brsanthu.googleanalytics
Interface RequestProvider


public interface RequestProvider

Interface which returns the GA request that needs to be sent to GA.

This interface helps creating the GA request in lazily inside the async thread so the cost of constructing the Request is not part of user related thread or cost is completely avoided if GA is disabled (via GoogleAnalyticsConfig.setEnabled)

Author:
Santhosh Kumar

Method Summary
 GoogleAnalyticsRequest getRequest()
          Constructs and returns the request, that should be sent to GA.
 

Method Detail

getRequest

GoogleAnalyticsRequest getRequest()
Constructs and returns the request, that should be sent to GA. If this method throws exception, nothing will be sent to GA.

Returns:
the request that must be sent to GA. Can return null and if so, nothing will be sent to GA.


Copyright © Sep 2013–2013 brsanthu Inc. All rights reserved.