Skip to content

Instantly share code, notes, and snippets.

@ubarua123
Created January 13, 2020 10:54
Show Gist options
  • Save ubarua123/1ed6ad083a58969f7d88b6995089dfff to your computer and use it in GitHub Desktop.
Save ubarua123/1ed6ad083a58969f7d88b6995089dfff to your computer and use it in GitHub Desktop.
@Subcomponent(modules = WorkerBindingModule.class)
public interface WorkManagerFactorySubComponent {
Map<Class<? extends RxWorker>, Provider<RxWorker>> getWorkerMap();
@Subcomponent.Builder
interface Builder {
@BindsInstance
Builder parameters(WorkerParameters parameters);
WorkManagerFactorySubComponent build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment