package Ġco . ghost notes . sample . d agger 2 . ui . main Ċ Ċ import Ġandroid . arch . lifecycle . Lifecycle Ċ import Ġandroid . arch . lifecycle . Lifecycle Observer Ċ import Ġandroid . arch . lifecycle . On Lifecycle Event Ċ import Ġco . ghost notes . sample . d agger 2 . util . Message Helper Ċ Ċ internal Ġclass ĠMain Lifecycle Observer ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġview : ĠMain Contract . View , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġmessage Helper : ĠMessage Helper Ċ ): ĠLifecycle Observer Ġ{ ĊĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ START ) ĊĠĠĠ Ġfun ĠonStart () Ġ{ ĊĠĠĠĠĠĠĠ Ġview . setText ( message Helper . getMessage ()) ĊĠĠĠ Ġ} Ċ Ċ }