https://kotlinlang.org logo
#announcements
Title
# announcements
u

uhe

04/10/2016, 8:35 AM
Copy code
abstract class MVPActivity<V : MVPContract.View, P : MVPContract.Presenter<V>> : AppCompatActivity(), MVPContract.View {
}

interface MVPContract {
    interface View
    interface Presenter<V : View>{
        fun getView() : V?
        fun attachView(view : V)
        fun detachView()
    }
}