Newer
Older
OverlayMultiCounter / app / src / main / kotlin / jackall / overlaymulticounter / viewmodel / OverlayViewModel.kt
MatsumotoKeiju on 8 Nov 2017 539 bytes [add] Counter view to finish and minimization
package jackall.overlaymulticounter.viewmodel

import android.databinding.BaseObservable
import android.view.View
import jackall.overlaymulticounter.contract.MainServiceContract

/**
 * オーバーレイ表示で共通部分のViewModel
 *
 * Created by matsumoto_k on 2017/11/08.
 */
class OverlayViewModel(val mainServiceContract: MainServiceContract) : BaseObservable() {
    fun onClickMin(view: View) {
        mainServiceContract.showMoveView()
    }

    fun onClickFinish(view: View) {
        mainServiceContract.finish()
    }
}