Created
May 27, 2017 10:00
-
-
Save whalemare/127461b5298f6946f460968f00b0f02e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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