OnModelVisibilityChangedListener

interface OnModelVisibilityChangedListener<T : EpoxyModel<V>?, V>

Used to register an onVisibilityChanged callback with a generated model.

Functions

onVisibilityChanged
Link copied to clipboard
abstract fun onVisibilityChanged(model: T, view: V, percentVisibleHeight: Float, percentVisibleWidth: Float, @Px() heightVisible: Int, @Px() widthVisible: Int)
This will be called once the view visible part changes.