ContentPreAllocator

class ContentPreAllocator(treeId: Int, componentContext: ComponentContext, mountContentHandler: RunnableHandler, avoidRedundantPreAllocations: Boolean, logger: ComponentsLogger?, nodeSupplier: () -> List<RenderTreeNode>, preAllocator: (Context, ContentAllocator<*>) -> Boolean)

Pre-allocate the mount content of all MountSpec in the given ComponentTree.

Note that this pre-allocation must be executed only after layout has been created.

Constructors

Link copied to clipboard
constructor(treeId: Int, componentContext: ComponentContext, mountContentHandler: RunnableHandler, avoidRedundantPreAllocations: Boolean, logger: ComponentsLogger?, nodeSupplier: () -> List<RenderTreeNode>, preAllocator: (Context, ContentAllocator<*>) -> Boolean)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
fun execute(tag: String)
Link copied to clipboard