ComponentsConfiguration

These values are safe defaults and should not require manual changes.

This class hosts all the config parameters that the ComponentTree configures it self .... enable and disable features ... A Component tree uses the .defaultComponentsConfiguration by default but a Builder can be used to create new instances of the config to override the default parameters ... The default config values can also be overridden by manually setting their values in .defaultBuilder

Types

Link copied to clipboard
class Builder

This is a builder that only exists so that Java clients can have an easier time creating and overriding specific configurations. For Kotlin one can use directly the named parameters on the ComponentsConfiguration constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

This is a temporary config param for debugging state list animator crashes during layout of a ComponentHost

Link copied to clipboard

Determines whether we log, crash, or do nothing if an invalid com.facebook.litho.ComponentHost view modification is detected.

Link copied to clipboard

Determines the pooling behavior for component hosts

Link copied to clipboard
val componentsLogger: ComponentsLogger? = null
Link copied to clipboard

You can define a ComponentTreeDebugEventListener to listen on specific litho lifecycle related events.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

This flag is used to enable a fix for the issue where components that match the host view size do not get unmounted when they go out of the viewport.

Link copied to clipboard

This will remove size specs from the resolve phase, which could potentially improve the possibility of reusing resolve result.

Link copied to clipboard

Applies a fix for sticky header offsets to ensure the header is properly restored to the right position when scrolling back to the top of the list. There was a bug where the header was incorrectly positioned if the content was scrolled to the top of the list very fast while more items were being loaded

Link copied to clipboard

This class is an error event handler that clients can optionally set on a ComponentTree to gracefully handle uncaught/unhandled exceptions thrown from the framework while resolving a layout.

Link copied to clipboard

Whether the com.facebook.rendercore.MountState can be mounted using incremental mount.

Link copied to clipboard

Whether the ComponentTree should be using State Reconciliation.

Link copied to clipboard
Link copied to clipboard

This flag is used to enable a fix for the issue where the Recycler is not measuring taking into any padding specified into it.

Link copied to clipboard

This will perform an optimization that will verify if the same size specs were used. However, this creates a bug in a specific scenario where double measure happens.

Link copied to clipboard

The handler ComponentTree will be used to run the pre-allocation process

Link copied to clipboard

This defines which strategy we will use to bind the com.facebook.litho.sections.widget.ExperimentalRecycler.

Link copied to clipboard
Link copied to clipboard

This flag is used to enable the use of default item animators in lazy collections, so that the behavior is compatible to what exists nowadays in the com.facebook.litho.sections.widget.RecyclerCollectionComponent.

Link copied to clipboard

LithoViewAttributesExtension is an extension for LithoView that allows setting custom view attributes on the underlying Android View or Drawable. This extension plays a crucial role when working with Litho components because it enables the modification of view properties not already exposed by the Litho framework. The proper functioning of this extension is vital for maintaining correct component behavior during mount and unmount processes, especially when controlled by animations.

Link copied to clipboard
Link copied to clipboard

Determines whether we should enable stable ids by default in the com.facebook.litho.widget.RecyclerBinder

Link copied to clipboard
val visibilityBoundsTransformer: VisibilityBoundsTransformer? = null
Link copied to clipboard

Whether the com.facebook.LithoView associated with the com.facebook.litho.ComponentTree will process visibility events.