Posted by Florina Muntenescu, Developer Relations Engineer
We simply wrapped up one other sequence of MAD Abilities movies and articles – this time on Kotlin and Jetpack. We coated alternative ways wherein we made Android code extra expressive and concise, safer, and simple to run asynchronous code with Kotlin.
Try the episodes beneath to degree up your Kotlin and Jetpack data! Every episode covers a selected set of APIs, speaking each about use the APIs but additionally exhibiting how APIs work underneath the hood. All of the episodes have accompanying weblog posts and most of them hyperlink to both a pattern or a codelab to make it simpler to comply with and dig deeper into the content material. We additionally had a reside Q&A that includes Jetpack and Kotlin engineers.
Episode 1 – Utilizing KTX libraries
On this episode we checked out how one can make your Android and Jetpack coding straightforward, nice and Kotlin-idiomatic with Jetpack KTX extensions. Presently, greater than 20 libraries have a KTX model. This episode covers a number of the most vital ones:
core-ktx that gives idiomatic Kotlin performance for APIs coming from the Android platform, plus a number of Jetpack KTX libraries that enable us to have a greater consumer expertise when working with APIs like
Episode 2 – Simplifying APIs with coroutines and Move
Episode 2, covers simplify APIs utilizing coroutines and Move in addition to construct your personal adapter utilizing
callbackFlow APIs. To get hands-on with this matter, take a look at the Building a Kotlin extensions library codelab.
Episode 3 – Utilizing and testing Room Kotlin APIs
This episode opens the door to Room, peeking in to see create Room tables and databases in Kotlin and implement one-shot droop operations like insert, and observable queries utilizing Move. When utilizing coroutines and Move, Room strikes all of the database operations onto the background thread for you. Try the video or blog post to learn the way to implement and take a look at Room queries. For extra hands-on work – take a look at the Room with a view codelab.
Episode 4 – Utilizing WorkManager Kotlin APIs
Episode 4 makes your job simpler with WorkManager, for scheduling asynchronous duties for speedy or deferred execution which can be anticipated to run even when the app is closed or the system restarts. On this episode we go over the fundamentals of WorkManager and look a bit extra in depth on the Kotlin APIs, like
Episode 5 – Group tip
Episode 5 is by Magda Miu – a Google Developer Skilled on Android who shared her expertise of leveraging foundational Kotlin APIs with CameraX. Test it out right here:
Episode 6 – Dwell Q&A
Within the last episode we launched right into a reside Q&A, hosted by Chet Haase, with visitors Yigit Boyar – Structure Parts tech lead, David Winer – Kotlin product supervisor, and developer relations engineers Manuel Vivo and myself. We answered questions from you on YouTube, Twitter and elsewhere.