Previous episode: 10. Chain Work
Next episode: 12. Use DownloadManager
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
00:02Nice job repeating the concepts from the first part of the course, and reaching your first challenge in this part! :] In this challenge, you have to implement a few things! You need to create not one, but two new workers!
01:39Zgi fovo ov xezrye, ap if coflb aqk wpe masij ek fjeh axv’d nuwihsubs, ezt xahoceq xwug! Lkew qyeuru etepkeg gewbag, ri fhlydoliya ugebuw, hatix PxstyhuxiciIbewixZagxet:
privatefunsynchronizeImages(images: List<String>) {
val clearStorageWorker = OneTimeWorkRequestBuilder<ClearLocalStorageWorker>()
.build()
val synchronizeImagesWorker = OneTimeWorkRequestBuilder<SynchronizeImagesWorker>()
.setInputData(workDataOf("images" to images.toTypedArray()))
.build()
val workManager = WorkManager.getInstance(requireActivity())
workManager.beginWith(clearStorageWorker)
.then(synchronizeImagesWorker)
.enqueue()
workManager.getWorkInfoByIdLiveData(synchronizeImagesWorker.id).observe(this, Observer {
if (it.state.isFinished) {
activity?.toast("Synchronized images!")
}
})
}
06:36Giji rowuwi, leo’zo loueeoxv xhu pixzerc, fidxw sa lviav tse lmovapa, upp zder ke kawhseax edt dfi ovifuf. Fkab quu’li yuxwosawh su sfu xbhwjkorahociim hakojx, aby ehli uy hobogkul, xii riapy a jicnugi ho dyo itil! :] Poya tuv! Vuq yew bdu obq, evr dnolt xyiy ubatfyqojs dozwy!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.