-
public final class UploadWorker extends Worker
UploadWorkeris responsible for handling background upload tasks using WorkManager. This worker is designed to process Datadog upload jobs asynchronously.This worker must be used only when a custom WorkFactory is implemented.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classUploadWorker.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SettableFuture<ListenableWorker.Result>mFuture
-
Constructor Summary
Constructors Constructor Description UploadWorker(Context appContext, WorkerParameters workerParams)Creates an instance of UploadWorker.
-
Method Summary
Modifier and Type Method Description ListenableWorker.ResultdoWork()-
Methods inherited from class androidx.work.Worker
getApplicationContext, getBackgroundExecutor, getId, getInputData, getNetwork, getRunAttemptCount, getTags, getTaskExecutor, getTriggeredContentAuthorities, getTriggeredContentUris, getWorkerFactory, isStopped, isUsed, onStopped, setForegroundAsync, setProgressAsync, setUsed, stop -
Methods inherited from class com.datadog.android.core.UploadWorker
getForegroundInfo, getForegroundInfoAsync, startWork -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UploadWorker
UploadWorker(Context appContext, WorkerParameters workerParams)
Creates an instance ofUploadWorker.- Parameters:
appContext- The application context.workerParams- Parameters required for the worker execution.
-
-
Method Detail
-
doWork
@WorkerThread() ListenableWorker.Result doWork()
-
-
-
-