prepare

open fun prepare(tag: String, componentRenderInfo: ComponentRenderInfo, @Nullable size: Size, handler: RunnableHandler)

Synchronously post preparing the ComponentTree for the given ComponentRenderInfo to the handler.


open fun prepare(tag: String, componentRenderInfo: ComponentRenderInfo, @Nullable size: Size)

Synchronously prepare the ComponentTree for the given ComponentRenderInfo.

Parameters

tag

Set a tag on the prepared ComponentTree so it can be retrieved from cache.

componentRenderInfo

to be prepared.

size

if not null, it will have the size result at the end of computing the layout. Prepare calls which require a size result to be computed cannot be cancelled (@see cancelPrepare). Prepare calls which are not immediately executed because the ComponentWarmer is not ready will not set a size.