If you’re like most of the other developers who love to write Android application with Kotlin programming language and uses the Coroutines API for blocking and non-blocking calls. Then you’ll love this new library called Coil-kt. The Kotlin Coil is…
Prerequisites: If you don’t know what is kotlin extension functions I encouraged you to first read this article then continue. Kotlin has this concept of extension function, which provides us to write the handy function without extending the existing class.…
As the title of this article described today’s piece cover using lambda, map, and filter in Kotlin. We’ll be covering the syntax and usage of each function and walk through some examples to familiarize yourself with using them. So, let’s…
Lists in Kotlin are very useful. It is the most used data structure and it can be used in a multitude of different ways to model and solve a whole bunch of problems. Lists are SO awesome. In this article,…
Recently, I was working on a project in which I need to work with a lot of enums. When working with enums I need to serialize and deserialize the enum values with Kotlinx Serialization library. I gathered a couple of…
One of the common operation when working with strings is to extract a substring of another string. There are several subString methods added to Kotlin String class as extension functions and we’re going to see them one-by-one. So, in this…
Recently, I’ve been working on a survey-based application where the user collects data from different dealers around the city and upload it on the server. I know what you guys have been thinking right now! It’s a simple application just…
In this quick article, I’ll try to show you an easy way of how you can ask Android runtime permissions using Kotlin extension functions. Almost in every android app, we need to ask some permission from the user. Asking runtime…
Recently, I have been working on a project where I need to store sealed class data inside the Room Persistence using the Kotlinx Serialization library. We all know that Room only supports primitives types for storage. I struggle for almost…
Kotlin Coroutines are expanding into the areas of Networking. With the new release of Retrofit 2.6.0, we can now add the suspend modifier to our Retrofit Service interface methods without passing any adapter for Deferred type. This allows us to…