Make sure your worker class has an @AssistedInject constructor with @Assisted parameters for Context and Worker Parameters.
Use @HiltWorker on the worker class.
Inject dependencies via constructor.
Use HiltWorkerFactory to create the worker.