HasDefaultViewModelProviderFactory

interface HasDefaultViewModelProviderFactory
androidx.lifecycle.HasDefaultViewModelProviderFactory

Interface that marks a ViewModelStoreOwner as having a default ViewModelProvider.Factory for use with ViewModelProvider#ViewModelProvider(ViewModelStoreOwner).

Summary

Public methods

abstract ViewModelProvider.Factory

Returns the default ViewModelProvider.Factory that should be used when no custom Factory is provided to the ViewModelProvider constructors.

Public methods

getDefaultViewModelProviderFactory

@NonNull abstract fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory

Returns the default ViewModelProvider.Factory that should be used when no custom Factory is provided to the ViewModelProvider constructors.

Return
ViewModelProvider.Factory: a ViewModelProvider.Factory