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 |
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 |
enableSwapAdapter
Configuration for swapping the adapter on mount/unmount
|
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 |
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 |
lazyComponentHost
Configuration for lazifying state of ComponentHost
|
static boolean |
lithoViewAlwaysMountsInPerformLayout
Whether we should always perform incremental mount in perform layout.
|
static boolean |
lithoViewIncrementalMountUsesLocalVisibleBounds
Whether incremental mount that begins in
LithoView should use the
local visible bounds of the view. |
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 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 |
useNewYogaEdge
If true then the new version of the YogaEdgeWithInts will be used.
|
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 incrementalMountUsesLocalVisibleBounds
LithoView
.public static boolean lithoViewIncrementalMountUsesLocalVisibleBounds
LithoView
should use the
local visible bounds of the view.public static boolean lithoViewAlwaysMountsInPerformLayout
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 enableSwapAdapter
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