public class ComponentsConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ARE_TRANSITIONS_SUPPORTED
Whether transitions are supported for this API version.
|
static boolean |
bootstrapBinderItems
Use the new bootstrap ranges code instead of initializing all the items when the binder view is
measured (t12986103).
|
static boolean |
debugHighlightInteractiveBounds
Debug option to highlight interactive areas in mounted components.
|
static boolean |
debugHighlightMountBounds
Debug option to highlight mount bounds of mounted components.
|
static boolean |
deepUnmountEnabled
Whether we unmount children of the views implementing
HasLithoViewChildren when unmounting those views themselves. |
static boolean |
incrementalMountUsesLocalVisibleBounds
Whether incremental mount should use the local visible bounds of the
LithoView . |
static boolean |
IS_INTERNAL_BUILD
Indicates whether this is an internal build.
|
static boolean |
isDebugModeEnabled
Option to enabled debug mode.
|
static boolean |
isEndToEndTestRun
Populates additional metadata to find mounted components at runtime.
|
static boolean |
lithoViewIncrementalMountUsesLocalVisibleBounds
Whether incremental mount that begins in
LithoView should use the
local visible bounds of the view. |
static boolean |
persistAllComponents
Whether to store the full list of Components used to create an
InternalNode when persisting the InternalNode tree. |
static boolean |
persistInternalNodeTree
Whether to keep a reference to the InternalNode tree in LayoutState instead of immediately
releasing it.
|
static boolean |
preallocatePerMountSpec
If false, we preallocate all mount specs in a ComponentTree if it sets a preallocation handler.
|
static boolean |
setRootAsyncRecyclerCollectionComponent
Whether the RecyclerCollectionComponent can asynchronously set the root of a SectionTree.
|
static boolean |
USE_INCREMENTAL_MOUNT_HELPER
Indicates that the incremental mount helper is required for this build.
|
static boolean |
usePooling
Whether to use Object pooling via
ComponentsPools . |
static YogaLogger |
YOGA_LOGGER |
Constructor and Description |
---|
ComponentsConfiguration() |
public static YogaLogger YOGA_LOGGER
public static final boolean IS_INTERNAL_BUILD
BuildConfig
that this class is compiled against may not be
the one that is included in the
APK. See: android_build_config.public static final boolean USE_INCREMENTAL_MOUNT_HELPER
public static final boolean ARE_TRANSITIONS_SUPPORTED
public static boolean isDebugModeEnabled
public static boolean debugHighlightInteractiveBounds
public static boolean debugHighlightMountBounds
public static boolean isEndToEndTestRun
IS_TESTINGsystem property at startup but can be overridden at runtime.
public static boolean bootstrapBinderItems
public static volatile boolean usePooling
ComponentsPools
. This is switch
because we are experimenting with turning off pooling to get a sense of what its impact is in
production.public static boolean deepUnmountEnabled
HasLithoViewChildren
when unmounting those views themselves. This is for
experimentation purposes to see the impact of this change on different product surfaces.public static boolean incrementalMountUsesLocalVisibleBounds
LithoView
.public static boolean lithoViewIncrementalMountUsesLocalVisibleBounds
LithoView
should use the
local visible bounds of the view.public static boolean persistInternalNodeTree
public static boolean persistAllComponents
InternalNode
when persisting the InternalNode tree.public static boolean setRootAsyncRecyclerCollectionComponent
public static boolean preallocatePerMountSpec
com.facebook.litho.annotations.MountSpec#canPreallocate()
to determine
for each MountSpec if it should be preallocated or not.