AOSPLithoVisibilityEventsController

This LithoVisibilityEventsController implementation dispatches to the registered observers the lifecycle state changes triggered by the provided LifecycleOwner. For example, if a Fragment is passed as param, the observers will be registered to listen to all of the fragment's lifecycle state changes.

Constructors

Link copied to clipboard
constructor(lifecycleOwner: LifecycleOwner)
constructor(lifecycleOwner: LifecycleOwner, delegate: LithoVisibilityEventsControllerDelegate = LithoVisibilityEventsControllerDelegate())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun addListener(listener: LithoVisibilityEventsListener)
Link copied to clipboard
Link copied to clipboard
open override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event)
Link copied to clipboard
open override fun removeListener(listener: LithoVisibilityEventsListener)