androidx.lifecycle:lifecycle-viewmodel-ktx

Official Description: Kotlin extensions for 'viewmodel' artifact

CommonsWare’s Notes

Primarily, this artifact offers viewModelScope, an extension property of ViewModel that provides a CoroutineScope associated with that ViewModel. When the ViewModel is cleared, any coroutines associated with the viewModelScope will be canceled. This is very useful for operations where you do not need the results if the user navigates away from the current screen.

Documentation

Knowledge

Samples

Versions