abstract fun onVisibilityChanged(model: T, view: V, percentVisibleHeight: Float, percentVisibleWidth: Float, @Px heightVisible: Int, @Px widthVisible: Int): Unit
This will be called once the view visible part changes.
OnModelVisibilityChangedListener should be used with particular care since they will be dispatched on every frame while scrolling. No heavy work should be done inside the implementation. Using OnModelVisibilityStateChangedListener is recommended whenever possible.
model - T: The model being bound
view - V: The view that is being bound to the model
percentVisibleHeight - Float: The percentage of height visible (0-100)
percentVisibleWidth - Float: The percentage of width visible (0-100)
heightVisible - Int: The visible height in pixel
widthVisible - Int: The visible width in pixel