Рет қаралды 9,448
Learn Jetpack Compose in Android. In this video, we'll be discussing two important concepts in Jetpack Compose: Launched Effect and Remember Coroutine Scope. If you're working with asynchronous operations in your Compose app, you need to know these concepts to manage your coroutines efficiently. First, we'll discuss Launched Effect, which allows you to start a coroutine when a composable is first composed or when a key value changes. This makes it perfect for handling one-off asynchronous operations like network requests or database queries. We'll show you how to use Launched Effect with a real-world example and explain how it works under the hood.
Next, we'll dive into Remember Coroutine Scope, which provides a CoroutineScope object that can be stored in a Composable to survive configuration changes. We'll discuss how this is different from the default CoroutineScope and how it can help you manage coroutines more efficiently. We'll also explain how CoroutineScope cancels coroutines when a composable is recreated due to configuration changes like screen rotations. We'll also compare Launched Effect and Remember Coroutine Scope, and show you which one to use for different use cases. We'll give you several examples of how to use both concepts, including handling network requests, database queries, and animations in your Compose app.
By the end of this video, you'll have a deep understanding of Launched Effect and Remember Coroutine Scope, and how they can help you build more efficient and reliable Compose apps. So, sit back, relax, and let's dive into the world of asynchronous programming in Jetpack Compose!. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Side Effects in Jetpack Compose.
2. Launched Effect Coroutine Scope Handling
3. RememberCoroutineScope Example
4. Difference between RememberCoroutineScope and Launched Effect.
Kotlin Flows Playlist -
• Kotlin Flows Tutorials
Jetpack Paging Tutorial -
• Android Paging 3 | Jet...
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode