LifecycleObserver

public interface LifecycleObserver

androidx.lifecycle.LifecycleObserver


Marks a class as a LifecycleObserver. Don't use this interface directly. Instead implement either DefaultLifecycleObserver or LifecycleEventObserver to be notified about lifecycle events.