Newer
Older
DevRealm / app / src / main / java / jackall / devrealm / viewmodel / MainViewModel.kt
MatsumotoKeiju on 8 Nov 2017 474 bytes [add] MainViewModel
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
        }
    }
}