package Ġcom . github . ter r ak ok . c icer one . sample . ui . start Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġcom . github . ter r ak ok . c icer one . Navigator Ċ import Ġcom . github . ter r ak ok . c icer one . Navigator Holder Ċ import Ġcom . github . ter r ak ok . c icer one . Router Ċ import Ġcom . github . ter r ak ok . c icer one . android x . App Navigator Ċ import Ġcom . github . ter r ak ok . c icer one . sample . R Ċ import Ġcom . github . ter r ak ok . c icer one . sample . Sample Application Ċ import Ġcom . github . ter r ak ok . c icer one . sample . mvp . start . Start Activity Presenter Ċ import Ġcom . github . ter r ak ok . c icer one . sample . mvp . start . Start Activity View Ċ import Ġm oxy . M vp AppCompatActivity Ċ import Ġm oxy . presenter . Inject Presenter Ċ import Ġm oxy . presenter . Provide Presenter Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġt err ak ok Ġ 2 1 . 1 1 . 1 6 Ċ Ġ*/ Ċ class ĠStart Activity Ġ: ĠM vp AppCompatActivity (), ĠStart Activity View Ġ{ ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġrouter : ĠRouter ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġnavigator Holder : ĠNavigator Holder ĊĊĠĠĠ Ġ@ Inject Presenter ĊĠĠĠ Ġlateinit Ġvar Ġpresenter : ĠStart Activity Presenter ĊĊĠĠĠ Ġprivate Ġval Ġnavigator : ĠNavigator Ġ= ĠApp Navigator ( this , Ġ- 1 ) ĊĊĠĠĠ Ġ@ Provide Presenter ĊĠĠĠ Ġfun Ġcreate Start Activity Presenter () Ġ= ĠStart Activity Presenter ( router ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠSample Application . INSTANCE . app Component . inject ( this ) ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ start ) ĊĠĠĠĠĠĠĠ Ġinit Views () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit Views () Ġ{ ĊĠĠĠĠĠĠĠ ĠfindViewById < View >( R . id . ord inary _ nav _ button ). setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpresenter . on Ord inary Pressed () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠfindViewById < View >( R . id . multi _ nav _ button ). setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpresenter . on Multi Pressed () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠfindViewById < View >( R . id . result _ and _ anim _ button ). setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpresenter . on Result With Animation Pressed () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĠĠĠĠĠĠĠ Ġnavigator Holder . set Navigator ( navigator ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Pause () Ġ{ ĊĠĠĠĠĠĠĠ Ġnavigator Holder . remove Navigator () ĊĠĠĠĠĠĠĠ Ġsuper . on Pause () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Back Pressed () Ġ{ ĊĠĠĠĠĠĠĠ Ġpresenter . on Back Pressed () ĊĠĠĠ Ġ} Ċ }