Passing data between screens | Navigation : Jetpack Compose - 34
In this video, we delve into advanced Jetpack Navigation techniques in Android development, focusing on data passing between screens using Jetpack Compose. We'll explore how to send data from one screen to another and process it on the receiving screen. We break down the process into key questions, starting with setting the data in the first screen using NavController and navigating to the second screen with data appended to the route. The video covers fetching and forwarding data with NavController, demonstrating with a live demo where data is passed from Screen 1 to Screen 2 and displayed. Further, we introduce a more dynamic approach to defining start destinations in navigation graphs and shows how to access data in composable functions without altering their signatures. Whether you're passing simple strings or contemplating sending more complex objects, this tutorial offers insights into efficient data handling in Android apps with Jetpack Compose. Don't forget to like, comment, share, and subscribe for more insightful tutorials from CodeTutor. Follow me on Twitter: https://twitter.com/anilvdeshpande Github link to the Source code of the demo: https://github.com/AnilDeshpande/SimpleNavigationExample/tree/live-coding Chapters 0:00 - Introduction to the Video and Presenter 0:03 - Welcome and Overview of Jetpack Navigation 0:17 - Continuing Discussion on Jetpack Navigation 0:37 - How to Pass Data from Screen 1 to Screen 2 1:02 - Using Nav Controller for Effective Navigation 2:03 - Demonstrating Data Passing with an App Demo 3:03 - Refactoring Code for Enhanced Navigation Flexibility 4:07 - Detailed Steps to Pass Data Between Screens 6:00 - Alternative Approaches to Data Passing 7:30 - Final Demonstration and Closing Thoughts
Download
0 formatsNo download links available.