tomtom. ivi. platform. frontend. api. common. frontend. viewmodels
Factory used to create view models upon re-creation of the fragment. The parameters should reflect the primary constructor of the ViewModel being recreated.
A combination of FrontendViewModel and AndroidViewModel. Should only be used when the Application instance is really required. This should be rare however, as ViewModels should not normally rely on a context. Instead, the layout should resolve raw information from the ViewModel using its own context.
A ViewModel that references the panel that hosts this ViewModel.
Thrown when an application tries to create an instance of ViewModel class, but the specified class does not have the required constructor.
Class to be used as a delegate to a ViewModel which can be stored and retrieved in a ViewModelStore.
Thrown when an application tries to create an instance of ViewModel class, but the specified class object cannot be instantiated. The instantiation can fail for a variety of reasons including but not limited to:
This can be used to store a property of a fragment in a ViewModelStore. The property will be encapsulated in a ViewModel and stored, so that it can be retrieved upon re-creation of a fragment.
Object containing methods to simplify the interaction with the ViewModelProvider.