OnLifecycleEvent

public abstract @interface OnLifecycleEvent
implements Annotation

androidx.lifecycle.OnLifecycleEvent


This @interface is deprecated.
This annotation required the usage of code generation or reflection, which should be avoided. Use DefaultLifecycleObserver or LifecycleEventObserver instead.

Annotation that can be used to mark methods on LifecycleObserver implementations that should be invoked to handle lifecycle events.

Summary

Public methods

Lifecycle.Event value()

Inherited methods

Public methods

value

public Lifecycle.Event value ()

Returns
Lifecycle.Event