ViewModelProvider.AndroidViewModelFactory.Companion

object ViewModelProvider.AndroidViewModelFactory.Companion


Summary

Public functions

ViewModelProvider.AndroidViewModelFactory
getInstance(application: Application?)

Retrieve a singleton instance of AndroidViewModelFactory.

Public functions

getInstance

fun getInstance(application: Application?): ViewModelProvider.AndroidViewModelFactory

Retrieve a singleton instance of AndroidViewModelFactory.

Parameters
application: Application?

an application to pass in AndroidViewModel