-
- All Implemented Interfaces:
-
androidx.lifecycle.DefaultLifecycleObserver,androidx.lifecycle.LifecycleObserver
public class SdkLifecycleObserver implements DefaultLifecycleObserver
author: MrHe date : 2023/2/16 desc :
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisBackgroundprivate BooleanisCoolStartpublic final static SdkLifecycleObserverINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitregisterActivityLifecycleCallbacks()UnitonCreate(LifecycleOwner owner)UnitonResume(LifecycleOwner owner)UnitonStart(LifecycleOwner owner)UnitonPause(LifecycleOwner owner)UnitonStop(LifecycleOwner owner)UnitonDestroy(LifecycleOwner owner)final BooleangetIsBackground()final UnitsetIsBackground(Boolean isBackground)final BooleangetIsCoolStart()final UnitsetIsCoolStart(Boolean isCoolStart)-
-
Method Detail
-
registerActivityLifecycleCallbacks
final Unit registerActivityLifecycleCallbacks()
-
onCreate
Unit onCreate(LifecycleOwner owner)
-
onResume
Unit onResume(LifecycleOwner owner)
-
onStart
Unit onStart(LifecycleOwner owner)
-
onPause
Unit onPause(LifecycleOwner owner)
-
onStop
Unit onStop(LifecycleOwner owner)
-
onDestroy
Unit onDestroy(LifecycleOwner owner)
-
getIsBackground
final Boolean getIsBackground()
-
setIsBackground
final Unit setIsBackground(Boolean isBackground)
-
getIsCoolStart
final Boolean getIsCoolStart()
-
setIsCoolStart
final Unit setIsCoolStart(Boolean isCoolStart)
-
-
-
-