欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

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.