NestedLithoViewsExtension
MountExtension to ensure that content with nested LithoViews is properly clearing those LithoViews when the item is unmounted. Since this should only happen when unmounting an item and not when it's being updated, shouldUpdateItem is not overridden (defaulting to super implementation which returns false).
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun beforeMountItem(extensionState: ExtensionState<Void?>, renderTreeNode: RenderTreeNode, index: Int)
Link copied to clipboard
Link copied to clipboard
open override fun onBindItem(extensionState: ExtensionState<Void?>, renderUnit: RenderUnit<*>, content: Any, layoutData: Any?)
Link copied to clipboard
open override fun onBoundsAppliedToItem(extensionState: ExtensionState<Void?>, renderUnit: RenderUnit<*>, content: Any, layoutData: Any?, changed: Boolean)
Link copied to clipboard
open override fun onMountItem(extensionState: ExtensionState<Void?>, renderUnit: RenderUnit<*>, content: Any, layoutData: Any?)
Link copied to clipboard
open override fun onUnbindItem(extensionState: ExtensionState<Void?>, renderUnit: RenderUnit<*>, content: Any, layoutData: Any?)
Link copied to clipboard
open override fun onUnmountItem(extensionState: ExtensionState<Void?>, renderUnit: RenderUnit<*>, content: Any, layoutData: Any?)
Link copied to clipboard
open override fun shouldUpdateItem(extensionState: ExtensionState<Void?>, previousRenderUnit: RenderUnit<*>, previousLayoutData: Any?, nextRenderUnit: RenderUnit<*>, nextLayoutData: Any?): Boolean