epoxy-adapter / com.airbnb.epoxy / OnModelVisibilityChangedListener

OnModelVisibilityChangedListener

interface OnModelVisibilityChangedListener<T : EpoxyModel<V>!, V : Any!>

Used to register an onVisibilityChanged callback with a generated model.

Functions

onVisibilityChanged

abstract fun onVisibilityChanged(model: T, view: V, percentVisibleHeight: Float, percentVisibleWidth: Float, heightVisible: Int, widthVisible: Int): Unit

This will be called once the view visible part changes.