package Ġcom . cx z . wan android . base Ċ Ċ import Ġandroid . arch . lifecycle . Lifecycle Ċ import Ġandroid . arch . lifecycle . Lifecycle Observer Ċ import Ġandroid . arch . lifecycle . Lifecycle Owner Ċ import Ġandroid . arch . lifecycle . On Lifecycle Event Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġch en xz Ġon Ġ 2 0 1 8 / 8 / 1 8 . Ċ Ġ*/ Ċ open Ġclass ĠBase Model Ġ: ĠI Model , ĠLifecycle Observer Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ On Lifecycle Event ( Lifecycle . Event . ON _ DESTROY ) ĊĠĠĠ Ġinternal Ġfun Ġon Destroy ( owner : ĠLifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠ Ġowner . lifecycle . remove Observer ( this ) ĊĠĠĠ Ġ} Ċ Ċ }