Kotlin Fragment Data Sharing: Using ViewModel

Опубликовано: 30 Сентябрь 2024
на канале: Mobile Application Tutorials
10,404
65

This Kotlin on Android tutorial series describes how to pass data between Android fragments using the ViewModel.

The key concepts this Kotlin on Android tutorial will cover are:
1. Installing the library for the ViewModel
2. Creating the ViewModel class
3. Using Kotlin lazy delegate for creating a ViewModel instance
4. Setting and getting ViewModel members in Kotlin
5. Calling an Android fragment from inside a fragment

The details of the code on GitHub can be found in the tutorial articles. The free YouTube membership is required, which can be found here https://goo.gl/SsUFZw

The full introduction post can be found here https://goo.gl/PtCmzi

Kotlin fragment sharing data series:
1 - Fragment interface https://goo.gl/e8DMdH - Release date: 14/03/2018
2 - Fragment arguments https://goo.gl/UMg8sN - Release date: 21/03/2018
3 - ViewModel https://goo.gl/PcXp1R - Release date: 28/03/2018

Each episode will be released on a weekly basis, with the release dates highlighted above.

For a one-off fee of $10.00 you can access the all the episodes straight away from here https://goo.gl/7eSUha

Or else you can sign up for the professional membership plan for unlimited access to all the premium ad-free tutorials for $10.00 a month here https://goo.gl/bVAVRX

For business inquiries, you can contact me at my site https://goo.gl/oYB4Ln
For any technical questions I provide paid consultancy here https://www.codementor.io/mobapptuts
Members of the professional plan can also post questions on the forum here https://goo.gl/gpEmLC

Site Series: https://goo.gl/TwuMy1
YouTube Playlist:

For questions, training and consultancy support I can be contacted here https://goo.gl/HEZsX1

For much more information check out

Website - https://www.mobapptuts.com
Codementor - https://www.codementor.io/mobapptuts
Twitter -   / mobapptuts  
Facebook -   / nigeapptuts  
Google+ - https://plus.google.com/b/11588464208...
Pinterest -   / mobapptuts