Skip to content

Instantly share code, notes, and snippets.

@whalemare
Created May 27, 2017 10:00
Show Gist options
  • Save whalemare/127461b5298f6946f460968f00b0f02e to your computer and use it in GitHub Desktop.
Save whalemare/127461b5298f6946f460968f00b0f02e to your computer and use it in GitHub Desktop.
package ru.whalemare.vkbirthday.mvp.presenter.base
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter
import com.hannesdorfmann.mosby.mvp.MvpView
/**
* @since 2017
* @author Anton Vlasov - whalemare
*/
open class BaseMvpPresenterK<V : MvpView> : MvpBasePresenter<V>() {
fun isActive(body: (v: V) -> Unit) {
if (isViewAttached) {
body(view!!)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment