triggerVisibilityEvent

open fun triggerVisibilityEvent(lithoView: LithoView, visibilityClass: Class<out Any>): Boolean

Triggers a Litho visibility event

The event needs to be one of VisibleEvent, InvisibleEvent, , UnfocusedVisibleEvent, or FullImpressionVisibleEvent.

Return

true if a handler for this event type was found

Parameters

lithoView

the view to invoke the event on its component tree

visibilityClass

the type of the event to invoke