HiltWorkerFactoryEntryPoint
interface HiltWorkerFactoryEntryPoint
Hilt entry point for accessing HiltWorkerFactory at runtime.
This entry point is required because WorkManager creates Worker instances itself, outside of Hilt's normal dependency injection flow. By providing this entry point, we can manually retrieve the HiltWorkerFactory and use it to create Workers with injected dependencies.
Why This Exists
WorkManager instantiates Workers directly using reflection
Hilt cannot automatically inject dependencies into Workers
This entry point bridges the gap by providing access to HiltWorkerFactory
See also
for usage