Answers for "what can i do when viewmodelinject is deprecated"

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 "what can i do when viewmodelinject is deprecated"

Browse Popular Code Answers by Language