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

NewInstanceFactory

open class NewInstanceFactory : ViewModelProvider.Factory
kotlin.Any
   ↳ androidx.lifecycle.ViewModelProvider.NewInstanceFactory

Simple factory, which calls empty constructor on the give class.

Summary

Public constructors

Simple factory, which calls empty constructor on the give class.

Public methods
open T
create(@NonNull modelClass: Class<T>)

Public constructors

<init>

NewInstanceFactory()

Simple factory, which calls empty constructor on the give class.

Public methods

create

@NonNull open fun <T : ViewModel!> create(@NonNull modelClass: Class<T>): T