Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

HiltViewModelFactory

class HiltViewModelFactory : AbstractSavedStateViewModelFactory
androidx.lifecycle.AbstractSavedStateViewModelFactory
   ↳ androidx.hilt.lifecycle.HiltViewModelFactory

View Model Provider Factory for the Hilt Extension.

A provider for this factory will be installed in the dagger.hilt.android.components.ActivityComponent and dagger.hilt.android.components.FragmentComponent. An instance of this factory will also be the default factory by activities and fragments annotated with dagger.hilt.android.AndroidEntryPoint.

Summary

Protected methods
T
create(@NonNull key: String, @NonNull modelClass: Class<T>, @NonNull handle: SavedStateHandle)

Inherited functions

Protected methods

create

@NonNull protected fun <T : ViewModel!> create(
    @NonNull key: String,
    @NonNull modelClass: Class<T>,
    @NonNull handle: SavedStateHandle
): T