Posted by Florina Muntenescu, Developer Relations Engineer
We simply wrapped up one other sequence of MAD Skills movies and articles – this time on Kotlin and Jetpack. We lined other ways during which we made Android code extra expressive and concise, safer, and straightforward to run asynchronous code with Kotlin.
Check out the episodes beneath to stage up your Kotlin and Jetpack data! Each episode covers a selected set of APIs, speaking each about the way to use the APIs but in addition displaying how APIs work underneath the hood. All 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 stay Q&A that includes Jetpack and Kotlin engineers.
Episode 1 – Using KTX libraries
In this episode we checked out how one can make your Android and Jetpack coding simple, nice and Kotlin-idiomatic with Jetpack KTX extensions. Currently, greater than 20 libraries have a KTX model. This episode covers among the most essential 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
Check out the video or the article:
Episode 2 – Simplifying APIs with coroutines and Flow
Episode 2, covers the way to simplify APIs utilizing coroutines and Flow in addition to the way to construct your individual adapter utilizing
callbackFlow APIs. To get hands-on with this matter, take a look at the Building a Kotlin extensions library codelab.
Watch the video or learn the article:
Episode 3 – Using and testing Room Kotlin APIs
This episode opens the door to Room, peeking in to see the way to create Room tables and databases in Kotlin and the way to implement one-shot droop operations like insert, and observable queries utilizing Flow. When utilizing coroutines and Flow, Room strikes all of the database operations onto the background thread for you. Check out the video or weblog put up 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 – Using WorkManager Kotlin APIs
Episode 4 makes your job simpler with WorkManager, for scheduling asynchronous duties for rapid or deferred execution which might be anticipated to run even when the app is closed or the machine restarts. In this episode we go over the fundamentals of WorkManager and look a bit extra in depth on the Kotlin APIs, like
Find the video right here and the article right here, however nothing compares to sensible expertise so undergo the WorkManager codelab.
Episode 5 – Community tip
Episode 5 is by Magda Miu – a Google Developer Expert on Android who shared her expertise of leveraging foundational Kotlin APIs with CameraX. Check it out right here:
Episode 6 – Live Q&A
In the ultimate episode we launched right into a stay Q&A, hosted by Chet Haase, with company Yigit Boyar – Architecture Components 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.