Рет қаралды 6,496
Learn Jetpack Compose in Android. In this video, learn about Disposable Side Effect in Jetpack Compose with examples. Covered all the required concepts to understand this concept well. This is a side effect handler that runs and also provides a way to clean up any resources. OnDispose method is defined place to execute clean up code when either composable leaves the composition or any key changes. It takes two parameters - one is key and other one is the effect block where side effect is executed. It is generally used to run non-suspended functions that might require clean up.
Learn the usage of DisposableEffect Handler in Jetpack Compose with Examples. It is always a best practice to dispose objects if they are not required to prevent memory leak. Learn by implementing a media player in composable along with one major example of implementing a feature where you want to check if keyboard is visible on the screen or not. This composable can be used to create custom UIs based on the keyboard visibility. Learn how to implement event handlers and how to add and remove these handlers using Disposable Effect in Compose. Learn how to define composables using best practices. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. DisposableEffect in Jetpack Compose.
2. Simple Example of Disposable Effect with MutableState.
3. onDispose Functionality for cleaning up resources in side effects.
4. Keyboard Visibility in Jetpack Compose - Check if keyboard is visible or not.
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