Can anyone explain what is by activityViewModels(), by fragmentViewModels(), by existingViewModels() and so on used for.
I get the idea that by activityVideModels() is used for shared viewModels between mutliple fragments that need to use data from the same viewModel, but how does it work..Do I actually need to extend activity with that viewModel or what? Do I need to specifiy viewModel factory or not?