LithoRenderer
A renderer for Litho components that handles RESOLVE and LAYOUT.
Constructors
Properties
The default TreeState needed by the StateProvider when there's no active scope in flight.
Whether this updater implements the same-frame animation invalidation path.
The size constraints used for layout calculations.
The default stable TreeState needed by the StateProvider as a fallback for UI thread reads when there's no active scope in flight.
Functions
Applies a batch of animation-frame invalidations produced during a single AnimationController frame tick. Each invalidation re-renders the read-tracked consumers of its stateId; the animated value itself stays owned by its AnimatedValue.
Returns a Cached value that is accessible across all re-render operations.
Performs a synchronous layout calculation with the given constraints. Uses the current resolve result if available, otherwise performs an inline resolve.
Stores a Cached value that will be accessible across all re-render operations.
Removes a state update that was previously enqueued if the state update has not been processed yet.
Shows the last committed layout if it was computed for constraints and renders root in the background, unless that layout is already for root. Returns false when nothing compatible can be shown, in which case the caller must render synchronously.
Performs a synchronous resolution and layout in one call. This is a blocking operation that completes the entire rendering pipeline.
Same as updateStateAsync but for Hook State.
Same as updateStateSync but for Hook State.
Enqueues a state update that will schedule a new render on a Thread controlled by the Litho infrastructure.
Enqueues a state update that will not schedule a new render. The new state will immediately be visible in Event Handlers and it will be visible in the next render phase.
Enqueues a state update that will schedule a new render on the calling thread at the end of its current run-loop. It is expected that the calling thread has an active Looper.