Skip to content

Instantly share code, notes, and snippets.

@ubarua123
Created January 13, 2020 07:11
Show Gist options
  • Save ubarua123/cb3fd9d3e23d29f657bd7b3e2aa6ba6b to your computer and use it in GitHub Desktop.
Save ubarua123/cb3fd9d3e23d29f657bd7b3e2aa6ba6b to your computer and use it in GitHub Desktop.
Woker Binding module
@Module
public abstract class WorkerBindingModule {
@Binds
@IntoMap
@WorkerKey(SampleWorker.class)
abstract RxWorker bindPushContentWorker(SampleWorker sampleWorkerInstance);
@Binds
@IntoMap
@WorkerKey(SampleWorker2.class)
abstract RxWorker bindContentTypesDumpWorker(SampleWorker2 sampleWorker2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment