class EpoxyVisibilityItem
This class represent an item in a android.view.ViewGroup and it is being reused with multiple model via the update method. There is 1:1 relationship between an EpoxyVisibilityItem and a child within the android.view.ViewGroup.
It contains the logic to compute the visibility state of an item. It will also invoke the visibility callbacks on com.airbnb.epoxy.EpoxyViewHolder
This class should remain non-public and is intended to be used by EpoxyVisibilityTracker only.
EpoxyVisibilityItem(adapterPosition: Int? = null)
This class represent an item in a android.view.ViewGroup and it is being reused with multiple model via the update method. There is 1:1 relationship between an EpoxyVisibilityItem and a child within the android.view.ViewGroup. |
var adapterPosition: Int |
fun handleChanged(epoxyHolder: EpoxyViewHolder, visibilityChangedEnabled: Boolean): Boolean |
|
fun handleFocus(epoxyHolder: EpoxyViewHolder, detachEvent: Boolean): Unit |
|
fun handleFullImpressionVisible(epoxyHolder: EpoxyViewHolder, detachEvent: Boolean): Unit |
|
fun handlePartialImpressionVisible(epoxyHolder: EpoxyViewHolder, detachEvent: Boolean, thresholdPercentage: Int): Unit |
|
fun handleVisible(epoxyHolder: EpoxyViewHolder, detachEvent: Boolean): Unit |
|
fun reset(newAdapterPosition: Int): Unit |
|
fun shiftBy(offsetPosition: Int): Unit |
|
fun update(view: View, parent: ViewGroup, detachEvent: Boolean): Boolean
Update the visibility item according the current layout. |