package Ġru . surf studio . android . message . sample . ui . screen . main Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . os . Persist able Bundle Ċ import Ġandroidx . annotation . Id Res Ċ import Ġkotlinx . android . synt hetic . main . activity _ main .* Ċ Ċ import Ġru . surf studio . android . core . mvp . activity . Base Render able Activity View Ċ import Ġru . surf studio . android . core . mvp . presenter . Core Presenter Ċ import Ġru . surf studio . android . message . sample . R Ċ import Ġru . surf studio . android . sample . d agger . ui . base . configur ator . Default Activity Screen Configurator Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠÐĴ ÑĮÑİ ĠÐ³ Ð» Ð°Ð² Ð½Ð¾Ð³Ð¾ ĠÑįÐº ÑĢÐ°Ð½ Ð° Ċ Ġ*/ Ċ class ĠMainActivity View Ġ: ĠBase Render able Activity View < Main Screen Model >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Screen Name (): ĠString Ġ Ġ= Ġ" MainActivity " ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġinternal Ġlateinit Ġvar Ġpresenter : ĠMain Presenter ĊĊĠĠĠ Ġ@ Id Res ĊĠĠĠ Ġoverride Ġfun Ġget ContentView (): ĠInt Ġ= ĠR . layout . activity _ main ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpersistent State : ĠPers ist able Bundle ?, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġview Re created : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState , Ġpersistent State , Ġview Re created ) ĊĠĠĠĠĠĠĠ Ġinit Listeners () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrender Internal ( sm : ĠMain Screen Model ) Ġ{} ĊĊĠĠĠ Ġoverride Ġfun Ġget Present ers (): ĠArray < Core Presenter <* >> Ġ= ĠarrayOf ( presenter ) ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Configurator (): ĠDefault Activity Screen Configurator Ġ= ĠMain Screen Configurator ( intent ) ĊĊĠĠĠ Ġprivate Ġfun Ġinit Listeners () Ġ{ ĊĠĠĠĠĠĠĠ Ġshow _ colored _ sn ackbar . setOnClickListener Ġ{ Ġpresenter . show Colo red Snackbar () Ġ} ĊĠĠĠĠĠĠĠ Ġshow _ sn ackbar _ with _ duration . setOnClickListener Ġ{ Ġpresenter . show Snackbar With Duration () Ġ} ĊĠĠĠĠĠĠĠ Ġshow _ sn ackbar _ with _ listener . setOnClickListener Ġ{ Ġpresenter . show Snackbar With Listener () Ġ} ĊĠĠĠĠĠĠĠ Ġshow _ gravity _ toast . setOnClickListener Ġ{ Ġpresenter . show Gravity Toast () Ġ} ĊĠĠĠĠĠĠĠ Ġclose _ sn ackbar . setOnClickListener Ġ{ Ġpresenter . close Snackbar () Ġ} ĊĠĠĠ Ġ} Ċ } Ċ