package Ġcom . fr aming . common lib . map Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . util . Attribute Set Ċ import Ġandroid . util . Log Ċ import Ġandroidx . lifecycle . Lifecycle Ċ import Ġandroidx . lifecycle . Lifecycle Observer Ċ import Ġandroidx . lifecycle . On Lifecycle Event Ċ import Ġcom . fr aming . support . map . F ram ing MapView Ċ Ċ /* Ċ Ġ* ĠDes Ġ Ġcommon Ġ å°ģè£ħ ç±» Ġ åĲĮæŃ¥ ä¸Ĭä¸ĭ æĸĩ ï¼Ī activity / fragment ï¼ī çĶŁåĳ½ åĳ¨æľŁ å¤ĦçĲĨ ĠMap View Ċ Ġ* ĠAuthor ĠYo ung Ċ Ġ* ĠDate ĠĊ Ġ*/ Ċ abstract Ġclass ĠSimple MapView Ġ: ĠF ram ing MapView , Lifecycle Observer { ĊĊĠĠĠ Ġconstructor ( p 0 : ĠContext ?) Ġ: Ġsuper ( p 0 ) ĊĠĠĠ Ġconstructor ( p 0 : ĠContext ?, Ġp 1 : ĠAttributeSet ?) Ġ: Ġsuper ( p 0 , Ġp 1 ) ĊĠĠĠ Ġconstructor ( p 0 : ĠContext ?, Ġp 1 : ĠAttributeSet ?, Ġp 2 : ĠInt ) Ġ: Ġsuper ( p 0 , Ġp 1 , Ġp 2 ) ĊĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ CREATE ) ĊĠĠĠ Ġfun ĠonCreate Life (){ Ċ // ĠĠĠĠĠĠĠ ĠonCreate ( Bundle ()) ĊĠĠĠĠĠĠĠ ĠLog . i (" Simple MapView "," on create ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ PAUSE ) ĊĠĠĠ Ġfun Ġon Pause Life (){ ĊĠĠĠĠĠĠĠ Ġon Pause () ĊĠĠĠĠĠĠĠ ĠLog . i (" Simple MapView "," on Pause Life ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ DESTROY ) ĊĠĠĠ Ġfun Ġon Dest ory Life (){ ĊĠĠĠĠĠĠĠ Ġon Destroy () ĊĠĠĠĠĠĠĠ ĠLog . i (" Simple MapView "," on Dest ory Life ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ RE SU ME ) ĊĠĠĠ Ġfun Ġon Resume Life (){ ĊĠĠĠĠĠĠĠ Ġon Resume () ĊĠĠĠ Ġ} Ċ }