package jackall.devrealm.viewmodel import android.arch.lifecycle.ViewModel import android.arch.lifecycle.ViewModelProvider /** * Created by matsumoto_k on 2017/11/08. */ class MainViewModel : LifecycleViewModel() { override fun onCreate() { super.onCreate() } class Factory() : ViewModelProvider.NewInstanceFactory() { override fun <T : ViewModel?> create(modelClass: Class<T>): T { return MainViewModel() as T } } }