public class LoggingHandler extends android.os.Handler implements LocationListener
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected java.lang.String |
siloName |
Modifier and Type | Method and Description |
---|---|
protected void |
_deleteUploadedData(int maxRowToDelete) |
protected int |
_getMaxRowToUpload() |
protected com.localytics.android.UploadThread |
_getUploadThread() |
protected void |
_onUploadCompleted(boolean successful,
java.lang.String responseBody) |
protected void |
_runBatchTransactionOnProvider(java.lang.Runnable runnable) |
protected <T> java.util.concurrent.FutureTask<T> |
getFuture(java.util.concurrent.Callable<T> callable) |
java.lang.String |
getLogTag() |
void |
handleMessage(android.os.Message msg) |
void |
localyticsDidDownloadManifest(java.util.Map<java.lang.String,java.lang.Object> marketingMap,
java.util.Map<java.lang.String,java.lang.Object> config,
boolean successful) |
void |
localyticsDidTriggerRegions(java.util.List<Region> regions,
Region.Event event)
Callback for when regions have been triggered with a particular event
|
void |
localyticsDidUpdateLocation(android.location.Location location)
Callback that the LocationManager has received an update
|
void |
localyticsDidUpdateMonitoredGeofences(java.util.List<CircularRegion> added,
java.util.List<CircularRegion> removed)
Callback for when geofence monitoring has been updated
|
void |
localyticsWillDownloadManifest() |
void |
onUploadCompleted(int deleteRows,
java.lang.String responseString,
boolean successful) |
createAsync, createAsync, dispatchMessage, dump, getLooper, getMessageName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
@NonNull protected final Logger logger
@NonNull protected java.lang.String siloName
protected void _deleteUploadedData(int maxRowToDelete)
protected void _onUploadCompleted(boolean successful, java.lang.String responseBody)
protected int _getMaxRowToUpload()
@Nullable protected com.localytics.android.UploadThread _getUploadThread()
public void localyticsWillDownloadManifest()
public void localyticsDidDownloadManifest(@Nullable java.util.Map<java.lang.String,java.lang.Object> marketingMap, @Nullable java.util.Map<java.lang.String,java.lang.Object> config, boolean successful)
public void localyticsDidUpdateLocation(@Nullable android.location.Location location)
LocationListener
localyticsDidUpdateLocation
in interface LocationListener
location
- Location object containg the new location informationpublic void localyticsDidTriggerRegions(@NonNull java.util.List<Region> regions, @NonNull Region.Event event)
LocationListener
localyticsDidTriggerRegions
in interface LocationListener
regions
- The list of regions that have been triggeredevent
- The event that triggered the regions Region.Event
public void localyticsDidUpdateMonitoredGeofences(@NonNull java.util.List<CircularRegion> added, @NonNull java.util.List<CircularRegion> removed)
LocationListener
localyticsDidUpdateMonitoredGeofences
in interface LocationListener
added
- List of geofences for which monitoring has begunremoved
- List of geofences for which monitoring has stoppedpublic void handleMessage(@NonNull android.os.Message msg)
handleMessage
in class android.os.Handler
protected void _runBatchTransactionOnProvider(@NonNull java.lang.Runnable runnable)
@NonNull protected <T> java.util.concurrent.FutureTask<T> getFuture(@NonNull java.util.concurrent.Callable<T> callable)
public void onUploadCompleted(int deleteRows, java.lang.String responseString, boolean successful)
public java.lang.String getLogTag()