ILifecycle Event Observer
An interface for observing lifecycle events of a LifecycleOwner.
Implement this interface to receive notifications about specific lifecycle events. Each method corresponds to a distinct lifecycle event.
Functions
Called when any lifecycle event occurs.
Notifies that ON_CREATE event occurred.
Called when the LifecycleOwner is being destroyed. This method is invoked once for a given LifecycleOwner. After this method is called, the LifecycleOwner is considered destroyed and will not receive any more lifecycle events.
Notifies that the ON_PAUSE event occurred.
Called when the lifecycle event ON_RESUME is received. This typically happens when the associated UI becomes visible and interactive again after being paused.
Called when the LifecycleOwner transitions to the STARTED state.
Called when the LifecycleOwner's state transitions to ON_STOP. This typically happens when the associated UI component is no longer visible to the user.