Obtenga el contexto a la vista Modelo Kotlin

class ActivityViewModel(application: Application) : AndroidViewModel(application) {

    private val context = getApplication<Application>().applicationContext

    //... ViewModel methods 

}
Distinct Dog