added in version 2.0.0
belongs to Maven artifact androidx.lifecycle:lifecycle-common:2.0.0-beta01

LifecycleObserver

public interface LifecycleObserver

androidx.lifecycle.LifecycleObserver


Marks a class as a LifecycleObserver. It does not have any methods, instead, relies on OnLifecycleEvent annotated methods.