ViewModelProvider.AndroidViewModelFactory.Companion

public static class ViewModelProvider.AndroidViewModelFactory.Companion


Summary

Public methods

static final @NonNull ViewModelProvider.AndroidViewModelFactory

Retrieve a singleton instance of AndroidViewModelFactory.

Public methods

getInstance

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

Retrieve a singleton instance of AndroidViewModelFactory.

Parameters
@NonNull Application application

an application to pass in AndroidViewModel