Epoxy Visibility Tracker
class EpoxyVisibilityTracker
Content copied to clipboard
A simple way to track visibility events on com.airbnb.epoxy.EpoxyModel.
EpoxyVisibilityTracker works with any androidx.recyclerview.widget.RecyclerView backed by an Epoxy controller. Once attached the events will be forwarded to the Epoxy model (or to the Epoxy view when using annotations).
Note that support for visibility events on an EpoxyModelGroup is somewhat limited. Only model additions will receive visibility events. Models that are removed from the group will not receive events (e.g. VisibilityState.INVISIBLE) because the model group does not keep a reference, nor does it get notified of model removals.
See also
com.airbnb.epoxy.OnVisibilityChanged
com.airbnb.epoxy.OnVisibilityStateChanged
Constructors
EpoxyVisibilityTracker
Link copied to clipboard
fun EpoxyVisibilityTracker()
Content copied to clipboard
Types
Functions
attach
Link copied to clipboard
clearVisibilityStates
Link copied to clipboard
fun clearVisibilityStates()
Content copied to clipboard
detach
Link copied to clipboard
requestVisibilityCheck
Link copied to clipboard
fun requestVisibilityCheck()
Content copied to clipboard
Properties
onChangedEnabled
Link copied to clipboard
partialImpressionThresholdPercentage
Link copied to clipboard