NestedLithoViewsExtension

class NestedLithoViewsExtension : MountExtension<Void?, Void?> , OnItemCallbacks<Void?>

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).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun afterMount(extensionState: ExtensionState<Void?>)
Link copied to clipboard
open fun beforeMount(extensionState: ExtensionState<Void?>, input: Void?, localVisibleRect: Rect?)
Link copied to clipboard
open override fun beforeMountItem(extensionState: ExtensionState<Void?>, renderTreeNode: RenderTreeNode, index: Int)
Link copied to clipboard
fun createExtensionState(mountDelegate: MountDelegate): ExtensionState<Void?>
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 fun onUnbind(extensionState: ExtensionState<Void?>)
Link copied to clipboard
open override fun onUnbindItem(extensionState: ExtensionState<Void?>, renderUnit: RenderUnit<*>, content: Any, layoutData: Any?)
Link copied to clipboard
open fun onUnmount(extensionState: ExtensionState<Void?>)
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