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 int |
arrayBatchAllocationRuntimeSize
Runtime Size for ArrayBatchAllocation Batch Size
|
static int |
arrayBatchAllocatorStartupSize
Startup Size for ArrayBatchAllocator Batch Size
|
static boolean |
assignTransitionKeysToAllOutputs
Assign transition keys to all LayoutOutputs, this enables Transition.allLayout()
|
static boolean |
CAN_CHECK_GLOBAL_ANIMATOR_SETTINGS
Whether we can access properties in Settings.Global for animations.
|
static boolean |
clearVisibilityItemsOnlyWhenDirty
Only clear visibility items in MountState when the MountState is dirty
|
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 int |
defaultChangeSetThreadPriority |
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 |
enableThrowableTracking
Assess the impact of using the Thrawable class to track crashes across threads
|
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 |
hostHasOverlappingRendering
Default for ComponentHost#hasOverlappingRendering.
|
static boolean |
incrementalMountOnPreDraw
Whether we should do incremental mount on pre draw
|
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 |
lazyComponentHost
Configuration for lazifying state of ComponentHost
|
static boolean |
NEEDS_THEME_SYNCHRONIZATION
Whether we need to account for lack of synchronization while accessing Themes.
|
static boolean |
prewarmImageTexture |
static boolean |
saveMeasuredSizesInMeasure |
static boolean |
setRootAsyncRecyclerCollectionComponent
Whether the RecyclerCollectionComponent can asynchronously set the root of a SectionTree.
|
static boolean |
shouldDelayChildPressedState
By default ComponentHost (extending ViewGroup) delay press state.
|
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 |
updateStateAsync
Configuration for asynchronous state update
|
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 |
useGlobalRectForRecursiveMounting
Whether we should use the global visible rect for mounting recursively
|
static boolean |
useNewIsEquivalentTo |
static boolean |
useNewYogaEdge
If true then the new version of the YogaEdgeWithInts will be used.
|
static boolean |
usePlaceholderComponent
Whether we should use the PlaceholderComponent instead of Column as MountSpec holder.
|
static boolean |
useStateHandlers
If false, we won't create state handlers.
|
static boolean |
variableArrayBatchAllocatorEnabled
Enable variable BatchSize for ArrayBatchAllocator
|
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 final boolean NEEDS_THEME_SYNCHRONIZATION
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 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 useGlobalKeys
public static boolean useNewYogaEdge
public static final int DEFAULT_BACKGROUND_THREAD_PRIORITY
public static int defaultChangeSetThreadPriority
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 updateStateAsync
public static boolean lazyComponentHost
public static boolean assignTransitionKeysToAllOutputs
public static boolean useStateHandlers
public static boolean hostHasOverlappingRendering
public static boolean variableArrayBatchAllocatorEnabled
public static int arrayBatchAllocatorStartupSize
public static int arrayBatchAllocationRuntimeSize
public static boolean saveMeasuredSizesInMeasure
public static boolean prewarmImageTexture
public static boolean shouldDelayChildPressedState
public static boolean useNewIsEquivalentTo
public static boolean clearVisibilityItemsOnlyWhenDirty
public static boolean enableThrowableTracking
public static boolean incrementalMountOnPreDraw
public static boolean useGlobalRectForRecursiveMounting
public static boolean usePlaceholderComponent