ContributesCoroutineWorker
annotation class ContributesCoroutineWorker
Annotate a CoroutineWorker class with this to automatically contribute it to the WorkManagerScope multibinding. Equivalent to the following declaration in an application module:
@ContributesMultibinding(scope = WorkManagerScope::class)
@AssistedFactory
public interface TestWorkerFactory : CoroutineWorkerFactory {
override fun create(@ApplicationContext context: Context, workerParameters: WorkerParameters): TestWorker
}
Content copied to clipboard
The generated code created via the anvil-codegen module.