ViewModelProvider.AndroidViewModelFactory.Companion

object ViewModelProvider.AndroidViewModelFactory.Companion


Summary

Public methods

final @NonNull ViewModelProvider.AndroidViewModelFactory
getInstance(Application application)

Retrieve a singleton instance of AndroidViewModelFactory.

Public methods

getInstance

public final @NonNull ViewModelProvider.AndroidViewModelFactory getInstance(Application application)

Retrieve a singleton instance of AndroidViewModelFactory.

Parameters
Application application

an application to pass in AndroidViewModel