package Ġcom . yy x nb . yy x arch . base Ċ Ċ import Ġandroid . arch . lifecycle . Default Lifecycle Observer Ċ import Ġandroid . arch . lifecycle . Lifecycle Owner Ċ import Ġandroid . util . Log Ċ Ċ object ĠJava 8 Observer Ġ: ĠDefault Lifecycle Observer Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . i (" --- onCreate ", Ġowner . lifecycle . currentState . name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonStart ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . i (" --- onStart ", Ġowner . lifecycle . currentState . name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . i (" --- on Resume ", Ġowner . lifecycle . currentState . name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Pause ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . i (" --- on Pause ", Ġowner . lifecycle . currentState . name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Stop ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . i (" --- on Stop ", Ġowner . lifecycle . currentState . name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . i (" --- on Destroy ", Ġowner . lifecycle . currentState . name ) ĊĠĠĠ Ġ} Ċ Ċ }