Created
May 10, 2018 16:01
-
-
Save brainail/9c64f3e90e4c87323d0c67dc5c69de54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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