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 |
CAN_CHECK_GLOBAL_ANIMATOR_SETTINGS
Whether we can access properties in Settings.Global for animations.
|
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 |
DEFAULT_BACKGROUND_THREAD_PRIORITY
The default priority for threads that perform background layout calculations.
|
static boolean |
doNotForceWrappingInViewForAnimation
Whether components with transitions set on don't necessarily have to be wrapped in views
|
static Set<String> |
enabledForSplitLayout |
static boolean |
enableOnErrorHandling
Enable exception delegation to
OnError . |
static boolean |
fillListViewport
Whether to fill list viewports in RecyclerBinder from measure().
|
static boolean |
fillListViewportHScrollOnly
Whether to fill list viewports in RecyclerBinder from measure(), but only for HScrolls.
|
static boolean |
forceEnableTransitionsForInstrumentationTests
By default end-to-end tests will disable transitions and this flag lets to explicitly enable
transitions to test animation related behavior.
|
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 |
isMainThreadSplitLayoutEnabled |
static boolean |
isSplitLayoutEnabled |
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 |
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 LayoutThreadPoolConfiguration |
splitLayoutBackgroundThreadPoolConfiguration |
static LayoutThreadPoolConfiguration |
splitLayoutMainThreadPoolConfiguration |
static LayoutThreadPoolConfiguration |
threadPoolForBackgroundThreadsConfig
Configuration for creating a thread pool of threads used for background layout.
|
static boolean |
unmountAllWhenComponentTreeSetToNull
Whether to unmount all contents of LithoView when its ComponentTree is set to null.
|
static boolean |
updateMeasureAsync
Configuration for updating state asynchronously in Recycler when receiving remeasure event
|
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 final boolean CAN_CHECK_GLOBAL_ANIMATOR_SETTINGS
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 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 final int DEFAULT_BACKGROUND_THREAD_PRIORITY
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
public static boolean forceEnableTransitionsForInstrumentationTests
public static LayoutThreadPoolConfiguration threadPoolForBackgroundThreadsConfig
public static boolean isSplitLayoutEnabled
public static boolean isMainThreadSplitLayoutEnabled
public static LayoutThreadPoolConfiguration splitLayoutMainThreadPoolConfiguration
public static LayoutThreadPoolConfiguration splitLayoutBackgroundThreadPoolConfiguration
public static boolean fillListViewport
public static boolean fillListViewportHScrollOnly
public static boolean updateMeasureAsync