Skip to content

Visibility Events

Eli Hart edited this page Oct 12, 2018 · 7 revisions

Epoxy supports notifying callbacks when views scroll on and off of the screen. Visibility status and granularity are defined with these terms.

  • Visible: Triggered when at least one pixel of the view is visible.

  • Invisible: Triggered when the view no longer has any pixels on the screen.

  • Focused: Event: Triggered when either the view occupies at least half of the viewport, or, if the view is smaller than half the viewport, when it is fully visible.

  • Unfocused Visible: Triggered when the view is no longer focused, i.e. it is not fully visible and does not occupy at least half the viewport.

  • Full Impression Visible: Triggered when the entire view has passed through the viewport at some point.

  • VisibilityChangedEvent: this event is triggered when the visibility of the Component on the screen changes.