Answers for "viewmodel is 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 "viewmodel is deprecated in java"

Browse Popular Code Answers by Language