package Ġcom . k ang ra oo . base kt lib . ui . mvp Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . k ang ra oo . base kt lib . ui . B Activity Ċ import Ġcom . k ang ra oo . base kt lib . ui . I Base View Ċ Ċ abstract Ġclass ĠBM vp Activity < V Ġ: ĠI Base View , ĠP Ġ: ĠBase Presenter < V >> Ġ: ĠB Activity () Ġ{ ĊĠĠĠ Ġprotected Ġval Ġ_ presenter : ĠP Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġcreate Presenter Instance () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġabstract Ġfun Ġcreate Presenter Instance (): ĠP ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created Before ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created Before ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġlifecycle . add Observer (_ presenter ) ĊĠĠĠĠĠĠĠ Ġ_ presenter . attach View ( this Ġas ĠV ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Destroy () ĊĠĠĠĠĠĠĠ Ġlifecycle . remove Observer (_ presenter ) ĊĠĠĠ Ġ} Ċ } Ċ