public class RemoteTrackerDatasource extends java.lang.Object implements TrackerDatasource
TrackerDatasource that makes the network calls to track the specified
 TrackingEvents.| Modifier and Type | Method and Description | 
|---|---|
static TrackerDatasource | 
create(HttpService httpService)
Instantiates a RemoteTrackerDatasource. 
 | 
void | 
track(java.util.List<TrackingEvent> trackingEvents,
     SSAICallback<java.util.List<TrackingEvent>> ssaiCallback)
Tries to contact the URI of each  
TrackingEvent and then notifies successful results
 in SSAICallback.onSuccess(Object), in case there were errors
 SSAICallback.onError(Throwable) is called. | 
public static TrackerDatasource create(@NonNull HttpService httpService)
httpService - a NonNull instance of HttpService.public void track(@NonNull
                  java.util.List<TrackingEvent> trackingEvents,
                  @NonNull
                  SSAICallback<java.util.List<TrackingEvent>> ssaiCallback)
TrackingEvent and then notifies successful results
 in SSAICallback.onSuccess(Object), in case there were errors
 SSAICallback.onError(Throwable) is called.
 Notice that both SSAICallback.onSuccess(Object) and
 SSAICallback.onError(Throwable) can be called in the same
 track(List, SSAICallback) call.track in interface TrackerDatasourcetrackingEvents - the list of tracking events to be tracked.ssaiCallback - a callback to receive status of the tracking events.