Skip to content

Instantly share code, notes, and snippets.

@lucassales2
Created March 6, 2019 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucassales2/90de6173a040854e390f6ce0d8fbb1b6 to your computer and use it in GitHub Desktop.
Save lucassales2/90de6173a040854e390f6ce0d8fbb1b6 to your computer and use it in GitHub Desktop.
import androidx.work.ListenableWorker
import dagger.MapKey
import kotlin.reflect.KClass
@MapKey
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class WorkerKey(val value: KClass<out ListenableWorker>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment