Last active
August 29, 2018 21:53
-
-
Save faruktoptas/5d6e9dd1048000386ed9ec12a7e948ba 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
/** | |
* Each presenter must implement this interface | |
* | |
* @param <V> View for the presenter | |
</V> */ | |
interface BaseMvpPresenter<V : BaseView> { | |
/** | |
* @return true if view is attached to presenter | |
*/ | |
val isAttached: Boolean | |
/** | |
* Called when view attached to presenter | |
* | |
* @param view | |
*/ | |
fun attach(view: V) | |
/** | |
* Called when view is detached from presenter | |
*/ | |
fun detach() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment