Skip to content

Instantly share code, notes, and snippets.

View ntoskrnl's full-sized avatar

Anton Danshin ntoskrnl

View GitHub Profile
@ntoskrnl
ntoskrnl / Presenter.kt
Created January 18, 2017 23:51 — forked from anonymous/Presenter.kt
Android. Example of how to store presenter in retained fragment and enable it to persist and restore view state.
interface Presenter<in V, in R> {
fun create()
fun attachRouter(router: R)
fun attachView(view: V)
fun detachView()