OnLifecycleEvent

Added in 2.0.0
Deprecated in 2.4.0

@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = ElementType.METHOD)
annotation OnLifecycleEvent


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

Summary

Public functions

abstract Lifecycle.Event!

Public functions

value

Added in 2.0.0
Deprecated in 2.4.0
abstract fun value(): Lifecycle.Event!