ReactClippingViewGroup

Interface that should be implemented by View subclasses that support removeClippedSubviews property. When this property is set for the ViewGroup subclass it's responsible for detaching it's child views that are clipped by the view boundaries. Those view boundaries should be determined based on it's parent clipping area and current view's offset in parent and doesn't necessarily reflect the view visible area (in a sense of a value that View.getGlobalVisibleRect may return). In order to determine the clipping rect for current view helper method ReactClippingViewGroupHelper.calculateClippingRect can be used that takes into account parent view settings.

Inheritors

Properties

Link copied to clipboard

Sets property removeClippedSubviews as a result of property update in JS. Should be called only from ViewManager.updateView method.

Functions

Link copied to clipboard
abstract fun getClippingRect(outClippingRect: Rect)

Get rectangular bounds to which view is currently clipped to. Called only on views that has set removeCLippedSubviews property value to true.

Link copied to clipboard
abstract fun updateClippingRect()

Notify view that clipping area may have changed and it should recalculate the list of children that should be attached/detached. This method should be called only when property removeClippedSubviews is set to true on a view.