Safe Args plugin(pass data) in Navigation Component in android studio

Published: 02 June 2020
on channel: Android Development Tutorials
120
1

Pass data between destinations
Navigation allows you to attach data to a navigation operation by defining arguments for a destination. For example, a user profile destination might take a user ID argument to determine which user to display.

In general, you should strongly prefer passing only the minimal amount of data between destinations. For example, you should pass a key to retrieve an object rather than passing the object itself, as the total space for all saved states is limited on Android. If you need to pass large amounts of data, consider using a ViewModel as described in Share data between fragments.


Watch video Safe Args plugin(pass data) in Navigation Component in android studio online without registration, duration hours minute second in high quality. This video was added by user Android Development Tutorials 02 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12 once and liked it people.