Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class WorkSpec {
// ...
@ColumnInfo(name = "worker_class_name")
var workerClassName: String
// ...
}
fun doWork(): WorkerResult {
val className = // ...
mDelegate = WorkerWrapper.workerFromClassName(
getApplicationContext(),
className,
getId(),
getInputData(),
getRuntimeExtras())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment