SyncWorker

@AssistedInject
constructor(@Assisted context: Context, @Assisted workerParameters: WorkerParameters, ioDispatcher: CoroutineDispatcher, homeRepository: HomeRepository)(source)

Parameters

context

Application context provided by WorkManager.

workerParameters

Runtime parameters provided by WorkManager.

ioDispatcher

Dispatcher for sync work.

homeRepository

Repository implementing the sync algorithm.