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 |
debugHighlightInteractiveBounds
Debug option to highlight interactive areas in mounted components.
|
static boolean |
debugHighlightMountBounds
Debug option to highlight mount bounds of mounted components.
|
static int |
defaultBackgroundThreadPriority
Override the priority of the default background layout thread in ComponentTree with this.
|
static boolean |
doNotForceWrappingInViewForAnimation
Whether components with transitions set on don't necessarily have to be wrapped in views
|
static boolean |
enableOnErrorHandling
Enable exception delegation to
OnError . |
static boolean |
incrementalMountUsesLocalVisibleBounds
Whether incremental mount should use the local visible bounds of the
LithoView . |
static boolean |
insertPostAsyncLayout
If true, insert operations with the
RecyclerBinder will not
start async layout calculations for the items in range, instead these layout calculations will
be posted to the next frame. |
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 |
lazilyInitializeLayoutStateOutputIdCalculator
If true then we'll lazily initialize the LayoutStateOutputIdCalculator
|
static boolean |
lazyInitializeComponent
If true, the components mKey and mChildCounters will not be initialized at construction time.
|
static boolean |
lithoViewIncrementalMountUsesLocalVisibleBounds
Whether incremental mount that begins in
LithoView should use the
local visible bounds of the view. |
static long |
longerStateUpdatePercentage
Used to simulate the impact of longer layout calculations for state updates by delaying the
estimated time with this percentage.
|
static boolean |
persistInternalNodeTree
Whether to keep a reference to the InternalNode tree in LayoutState instead of immediately
releasing it.
|
static boolean |
setRootAsyncRecyclerCollectionComponent
Whether the RecyclerCollectionComponent can asynchronously set the root of a SectionTree.
|
static boolean |
shortcutMatrixDrawable
Whether MatrixDrawable draw call can be shortcutted to underlying drawable
|
static boolean |
unmountAllWhenComponentTreeSetToNull
Whether to unmount all contents of LithoView when its ComponentTree is set to null.
|
static boolean |
USE_INCREMENTAL_MOUNT_HELPER
Indicates that the incremental mount helper is required for this build.
|
static boolean |
useBatchArrayAllocator
If true then we'll allocate YogaEdgesWithIntsImplOptimized arrays in batches
|
static boolean |
useGlobalKeys
If false, global keys will not be generated (litho level state updates won't work).
|
static boolean |
useNewYogaEdge
If true then the new version of the YogaEdgeWithInts will be used.
|
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 enableOnErrorHandling
OnError
.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 setRootAsyncRecyclerCollectionComponent
public static boolean insertPostAsyncLayout
RecyclerBinder
will not
start async layout calculations for the items in range, instead these layout calculations will
be posted to the next frame.public static boolean lazyInitializeComponent
public static boolean useGlobalKeys
public static boolean shortcutMatrixDrawable
public static boolean useNewYogaEdge
public static long longerStateUpdatePercentage
public static int defaultBackgroundThreadPriority
public static boolean doNotForceWrappingInViewForAnimation
If enabled, we'll decide if a component needs to be wrapped in a view for running Transitions at the layout phase, taking into account among others factors like: number of children, if background is set, etc. This is under development, thus, when enabled, some functionality may not work as expected or not work at all.
public static boolean useBatchArrayAllocator
public static boolean lazilyInitializeLayoutStateOutputIdCalculator
public static boolean unmountAllWhenComponentTreeSetToNull