Pass data between destinations by Navigation Component

preview_player
Показать описание
When using navigation, you can define arguments for a destination and then attach data to a navigation operation. For example, a user profile destination might take a user ID argument to determine which user to display.
Pass data using Safe Args
Safe Args is a Gradle plugin that generates simple object and builder classes that enable type-safe navigation and argument passing between destinations. In order to ensure type-safety, Safe Args is strongly recommended for navigating and passing data.

GithubSource :

How to Use Navigation Component in Android

If you're looking to enhance your Android skills or have any questions about the field, feel free to reach out to me on MentorCruise. I'm here to support your growth and learning! Let's connect and learn together! 📚💡
Рекомендации по теме
Комментарии
Автор

A lady's voice in a tech tutorial. So relaxing to hear. Thank you

shivagiri
Автор

I've been trying to fix missing direction classes for 1 hour and I found your video. This video fixed my issue. Thanks for your help.

sahinnmaral
Автор

Congratulations! Very good explanations! Thanks for teaching.

almirsilva
Автор

Thank you for this video ! Subscribed ! I can't wait to see more from you !

simonanikolova
Автор

thank you. the trick with rebuilding project helped a lot!

MrHoneyBuny
Автор

you sound very young and you did great man! perfect tutorial, thank you! good luck with everything!

ibrahimylmaz
Автор

Amazing video, keep up the wonderful work 🙌🙌

streetozvuchkatj
Автор

thank you very much, you helped me a lot! even better than StackOverflow, keep it up👍

tykqnsq
Автор

Very helpful video, please keep posting 👏👏

iraklideka
Автор

Ty for this video, how to use it with bottom navigation view

Klimpton
Автор

No matching variant of was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute with value '7.4' but:
My project is giving this error during sync

shekharanand
Автор

how to receive a bundle usring this im trying to get bundle in Destination fragment
this is my code in sending fragment
mNavController.navigate(R.id.action_patientMenuSearchDoctor_to_activityPatientViewDoctorProfile, bundle, null) im trying to receive it in destination (data class )

rabiayousaf