ViewModelProvider.AndroidViewModelFactory.Companion

object ViewModelProvider.AndroidViewModelFactory.Companion


Summary

Public methods

final @NonNull ViewModelProvider.AndroidViewModelFactory

Retrieve a singleton instance of AndroidViewModelFactory.

Public methods

getInstance

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

Retrieve a singleton instance of AndroidViewModelFactory.

Parameters
@NonNull Application application

an application to pass in AndroidViewModel