Newer
Older
MonCalc / app / src / main / kotlin / jackall / moncalc / viewmodel / MainViewModel.kt
package jackall.moncalc.viewmodel

import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider

/**
 * MainActivityのViewModel.
 *
 * Created by matsumoto_k on 2017/11/01.
 */
class MainViewModel : LifecycleViewModel() {

    class Factory() : ViewModelProvider.NewInstanceFactory() {
        override fun <T : ViewModel?> create(modelClass: Class<T>): T {
            return MainViewModel() as T
        }
    }
}