added hilt viewmodel with button onclick
This commit is contained in:
		
							parent
							
								
									94244f5cfe
								
							
						
					
					
						commit
						17ad4c374b
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,14 @@
 | 
			
		|||
package be.ugent.sel.studeez.screens.home
 | 
			
		||||
 | 
			
		||||
class HomeViewModel {
 | 
			
		||||
import be.ugent.sel.studeez.domain.LogService
 | 
			
		||||
import be.ugent.sel.studeez.screens.StudeezViewModel
 | 
			
		||||
import dagger.hilt.android.lifecycle.HiltViewModel
 | 
			
		||||
import javax.inject.Inject
 | 
			
		||||
 | 
			
		||||
@HiltViewModel
 | 
			
		||||
class HomeViewModel @Inject constructor(logService: LogService) : StudeezViewModel(logService) {
 | 
			
		||||
 | 
			
		||||
    fun onStartSessionClick(openAndPopUp: (String, String) -> Unit) {
 | 
			
		||||
        //openAndPopUp(StudeezDestinations.xxx, StudeezDestinations.HOME_SCREEN)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in a new issue