public class AppLifecycleListener
extends java.lang.Object
implements androidx.lifecycle.DefaultLifecycleObserver
Observer class for app’s lifecycle events
Constructor and Description |
---|
AppLifecycleListener() |
Modifier and Type | Method and Description |
---|---|
void |
onCreate(androidx.lifecycle.LifecycleOwner owner) |
void |
onDestroy(androidx.lifecycle.LifecycleOwner owner) |
void |
onPause(androidx.lifecycle.LifecycleOwner owner) |
void |
onResume(androidx.lifecycle.LifecycleOwner owner) |
void |
onStart(androidx.lifecycle.LifecycleOwner owner) |
void |
onStop(androidx.lifecycle.LifecycleOwner owner) |
public void onStart(@NonNull androidx.lifecycle.LifecycleOwner owner)
onStart
in interface androidx.lifecycle.DefaultLifecycleObserver
public void onStop(@NonNull androidx.lifecycle.LifecycleOwner owner)
onStop
in interface androidx.lifecycle.DefaultLifecycleObserver
public void onResume(@NonNull androidx.lifecycle.LifecycleOwner owner)
onResume
in interface androidx.lifecycle.DefaultLifecycleObserver
public void onPause(@NonNull androidx.lifecycle.LifecycleOwner owner)
onPause
in interface androidx.lifecycle.DefaultLifecycleObserver
public void onCreate(@NonNull androidx.lifecycle.LifecycleOwner owner)
onCreate
in interface androidx.lifecycle.DefaultLifecycleObserver
public void onDestroy(@NonNull androidx.lifecycle.LifecycleOwner owner)
onDestroy
in interface androidx.lifecycle.DefaultLifecycleObserver