Package com.swrve.sdk
Class SwrveGeoplaceFetcherWorker
- java.lang.Object
-
- androidx.work.ListenableWorker
-
- androidx.work.Worker
-
- com.swrve.sdk.SwrveGeoplaceFetcherWorker
-
public class SwrveGeoplaceFetcherWorker extends androidx.work.Worker
-
-
Constructor Summary
Constructors Constructor Description SwrveGeoplaceFetcherWorker(android.content.Context context, androidx.work.WorkerParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description androidx.work.ListenableWorker.Result
doWork()
protected void
fetchGeoplaces(android.location.Location location)
protected com.google.android.gms.tasks.Task<android.location.Location>
getLastLocationTask()
protected android.location.Location
getLocation(com.google.android.gms.tasks.Task<android.location.Location> task)
protected void
startGeoEngine(android.location.Location location)
-
Methods inherited from class androidx.work.ListenableWorker
getApplicationContext, getBackgroundExecutor, getForegroundInfoAsync, getId, getInputData, getNetwork, getRunAttemptCount, getTags, getTaskExecutor, getTriggeredContentAuthorities, getTriggeredContentUris, getWorkerFactory, isRunInForeground, isStopped, isUsed, onStopped, setForegroundAsync, setProgressAsync, setRunInForeground, setUsed, stop
-
-
-
-
Method Detail
-
doWork
@NonNull public androidx.work.ListenableWorker.Result doWork()
- Specified by:
doWork
in classandroidx.work.Worker
-
getLastLocationTask
protected com.google.android.gms.tasks.Task<android.location.Location> getLastLocationTask()
-
fetchGeoplaces
protected void fetchGeoplaces(android.location.Location location)
-
startGeoEngine
protected void startGeoEngine(android.location.Location location)
-
getLocation
protected android.location.Location getLocation(com.google.android.gms.tasks.Task<android.location.Location> task)
-
-