Package tangle.work

Types

Link copied to clipboard
fun interface AssistedWorkerFactory<T : ListenableWorker>

Creates a ListenableWorker using Dagger for the TangleWorkerFactory.

Link copied to clipboard

Qualifier for the internal Map<String, AssistedWorkerFactory<out ListenableWorker>> used in Tangle's Worker multi-binding.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class TangleWorker

Adds the annotated ListenableWorker to Dagger's graph via Tangle. The corresponding Worker can then be created using TangleWorkerFactory.

Link copied to clipboard
interface TangleWorkerComponent

Internal use only.

Link copied to clipboard
class TangleWorkerFactory : WorkerFactory

A WorkerFactory for Tangle. This factory references the Dagger dependency graph via the TangleGraph singleton, and uses it to generate injected ListenableWorker instances.

Link copied to clipboard
interface TangleWorkerFactoryMapSubcomponent

Internal-use Subcomponent which provides a map of ListenableWorkers to the TangleWorkerFactory.