package Ġcom . developer . alle f . boilerplate app . ui Ċ Ċ import Ġandroid . util . Log Ċ import Ġandroid . view . View Ċ import Ġandroidx . lifecycle . Lifecycle Ċ import Ġandroidx . lifecycle . On Lifecycle Event Ċ Ċ /** Ċ Ġ* Ġ@ author Ġalle f . san tos Ġon Ġ 2 7 / 0 7 / 2 0 Ċ Ġ*/ Ċ class ĠMain Presenter Ġ: ĠBase Presenter < Main Contract . Main View >() Ġ{ Ċ Ċ // ĠĠĠ Ġprivate Ġval Ġdis posable Ġ= ĠComposite Disposable () ĊĊĠĠĠ Ġfun Ġload Movies (){ ĊĠĠĠĠĠĠĠ ĠLog . d ( Main Presenter :: class . java . simple Name ," Load ĠMov ies ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ RE SU ME ) ĊĠĠĠ Ġfun Ġon Resume (){ ĊĠĠĠĠĠĠĠ ĠLog . d ( Main Presenter :: class . java . simple Name ," On Resume ") ĊĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ START ) ĊĠĠĠ Ġfun ĠonStart (){ ĊĠĠĠĠĠĠĠ ĠLog . d ( Main Presenter :: class . java . simple Name ," On Start ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ PAUSE ) ĊĠĠĠ Ġfun Ġon Pause (){ ĊĠĠĠĠĠĠĠ ĠLog . d ( Main Presenter :: class . java . simple Name ," On Pause ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ STOP ) ĊĠĠĠ Ġfun Ġon Stop (){ ĊĠĠĠĠĠĠĠ ĠLog . d ( Main Presenter :: class . java . simple Name ," On Stop ") ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġoverride Ġfun Ġon Cle ared () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Cle ared () Ċ // ĠĠĠĠĠĠĠ Ġdis posable . dispose ĊĠĠĠ Ġ} Ċ }