Answers for "'ViewModelInject' is deprecated. Deprecated in Java"

1

viewmodelinject deprecated

@HiltViewModel
class MyViewModel @Inject constructor(
    private val repository: Repository,
    private val savedStateHandle: SavedStateHandle
) : ViewModel(), LifecycleObserver {

    // Some code
}
Posted by: Guest on February-17-2021

Code answers related to "'ViewModelInject' is deprecated. Deprecated in Java"

Browse Popular Code Answers by Language