Class MainViewModel

    • Constructor Detail

      • MainViewModel

        public MainViewModel​(@NonNull
                             Application application)
        The constructor initializes repositories, services, and other elements needed by the ViewModel.
        Parameters:
        application - The ScaleScroller application.
    • Method Detail

      • getPlayer

        public LiveData<Player> getPlayer()
        Returns LiveData of the current player.
        Returns:
        LiveData of the current Player.
      • getScales

        public LiveData<List<Scale>> getScales()
        Returns LiveData of a list of all scales in the database, ordered by difficulty.
        Returns:
        LiveData of a List of all Scale in the database.