Class MainViewModel
- java.lang.Object
-
- androidx.lifecycle.ViewModel
-
- androidx.lifecycle.AndroidViewModel
-
- edu.cnm.deepdive.cardcombat.viewmodel.MainViewModel
-
public class MainViewModel extends AndroidViewModel
Serves as the ViewModel for all fragments except the GameFragment.
-
-
Constructor Summary
Constructors Constructor Description MainViewModel(Application application)
The constructor initializes repositories, services, and other elements needed by the ViewModel.
-
-
-
Constructor Detail
-
MainViewModel
public MainViewModel(@NonNull Application application)
The constructor initializes repositories, services, and other elements needed by the ViewModel.- Parameters:
application
- The CardCombat application.
-
-