Skip to content

In android, we can use ViewModel to share data between various fragments or activities by sharing the same ViewModel among all the fragments and they can access everything defined in the ViewModel. This is one way to have communication between fragments or activities

License

Notifications You must be signed in to change notification settings

SamsetDev/SharedViewModel

Repository files navigation

SharedViewModel

In android, we can use ViewModel to share data between various fragments or activities by sharing the same ViewModel among all the fragments and they can access everything defined in the ViewModel. This is one way to have communication between fragments or activities

About

In android, we can use ViewModel to share data between various fragments or activities by sharing the same ViewModel among all the fragments and they can access everything defined in the ViewModel. This is one way to have communication between fragments or activities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages