Skip to content

Instantly share code, notes, and snippets.

@faruktoptas
Last active August 29, 2018 21:53
Show Gist options
  • Save faruktoptas/5d6e9dd1048000386ed9ec12a7e948ba to your computer and use it in GitHub Desktop.
Save faruktoptas/5d6e9dd1048000386ed9ec12a7e948ba to your computer and use it in GitHub Desktop.
/**
* 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