public class ComponentsConfiguration extends Object
These values are safe defaults and should not require manual changes.
Modifier and Type | Field and Description |
---|---|
static boolean |
boostPerfLayoutStateFuture
If true, the
perfBoosterFactory will be used to indicate that LayoutStateFuture thread
can use the perf boost |
static boolean |
CAN_CHECK_GLOBAL_ANIMATOR_SETTINGS
Whether we can access properties in Settings.Global for animations.
|
static boolean |
canInterruptAndMoveLayoutsBetweenThreads |
static boolean |
checkNeedsRemeasure
If true, we also check if the RecyclerBinder needs remeasuring when checking if it's been
measured.
|
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 |
DEFAULT_CHANGE_SET_THREAD_PRIORITY
The default priority for threads that perform background sections change set calculations.
|
static boolean |
delegateToRenderCoreMount |
static boolean |
disableComponentHostPool
(Hopefully) temporary measure as we're investigating a major crash in libhwui.
|
static boolean |
disableGetAnnotationUsage
field.getAnnotation() has bugs which is causing java crashes in the App, in addition to this we
suspect this might be a reason for few other native crashes as well.
|
static String |
disablePoolsEnd |
static String |
disablePoolsStart |
static boolean |
disableTransitionsExtensionForMountDelegate |
static boolean |
enableErrorBoundaryComponent |
static boolean |
enableLithoViewDebugOverlay
LithoView overlay showing whether its ComponentTree was computed on UI thread (red) or bg
thread (green).
|
static boolean |
enableOnErrorHandling
Enable exception delegation to
OnError . |
static boolean |
enableRenderInfoDebugging
If true, information about RenderInfos will be passed to Flipper's layout inspector.
|
static boolean |
enableShouldCreateLayoutWithNewSizeSpec
Whether the OnShouldCreateLayoutWithNewSizeSpec is used with Layout Spec with size spec.
|
static boolean |
enableThreadTracingStacktrace |
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 |
ignoreStateUpdatesForScreenshotTest |
static boolean |
incrementalVisibilityHandling |
static boolean |
inheritPriorityFromUiThread
Whether the background thread that's currently running the layout should have its priority
raised to the thread priority of the UI thread.
|
static boolean |
IS_INTERNAL_BUILD
Indicates whether this is an internal build.
|
static boolean |
isAnimationDisabled |
static boolean |
isDebugHierarchyEnabled
Lightweight tracking of component class hierarchy of MountItems.
|
static boolean |
isDebugModeEnabled
Option to enabled debug mode.
|
static boolean |
isEndToEndTestRun
Populates additional metadata to find mounted components at runtime.
|
static boolean |
isGlobalComponentsPoolEnabled |
static boolean |
isHooksImplEnabled
When
true internal hooks implementation is applied. |
static boolean |
isIncrementalMountGloballyDisabled
When
true , disables incremental mount globally. |
static boolean |
isLayoutDiffingEnabled
Sets if layout diffing is enabled.
|
static boolean |
isPoolBisectEnabled
Bisect mount pool to find the buggy implementation causing native crashes.
|
static boolean |
isReconciliationEnabled
Sets if is reconciliation is enabled
|
static boolean |
lazyComparableAnimatedColorDrawable
specifies if the ComparableAnimatedColorDrawable should be initialized in a lazy way
|
static boolean |
NEEDS_THEME_SYNCHRONIZATION
Whether we need to account for lack of synchronization while accessing Themes.
|
static boolean |
onlyProcessAutogeneratedTransitionIdsWhenNecessary
Enables more smart approach to processing autogenerated transition ids in
TransitionManager.setupTransitions(), taking into account whether there are transitions that
target all layout, and the fact that appear/disappear animations cannot be defined for
autogenerated ids
|
static LithoPerfBoosterFactory |
perfBoosterFactory |
static boolean |
prioritizeRenderingOnParallel |
static boolean |
shouldDisableDrawableOutputs |
static boolean |
shouldForceAsyncStateUpdate
Enabling this will force all updateStateSync methods to be updateStateAsync.
|
static boolean |
shouldForceComponentUpdateOnOrientationChange
If
false we won't force Component to update when Device Orientation change, and rely on
its size change. |
static boolean |
shouldUseDeepCloneDuringReconciliation
When enabled reconciliation will use the deep clone method of the InternalNode with the
simplified implementation of shallow copy.
|
static boolean |
skipVisChecksForFullyVisible |
static LayoutThreadPoolConfiguration |
threadPoolConfiguration
If non-null, a thread pool will be used for async layouts instead of a single layout thread.
|
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 |
USE_INCREMENTAL_MOUNT_HELPER
Indicates that the incremental mount helper is required for this build.
|
static boolean |
useCancelableLayoutFutures |
static boolean |
useExtensionsWithMountDelegate |
static boolean |
useGlobalKeys
If false, global keys will not be generated (litho level state updates won't work).
|
static boolean |
useIncrementalMountExtension |
static boolean |
useInternalNodesForLayoutDiffing
When enabled it would use Internal Nodes for layout diffing instead Diff Nodes.
|
static boolean |
useNewGenerateMechanismForGlobalKeys
If true, global keys will be generated in Layout, otherwise a component itself responsible for
the global key generation.
|
static boolean |
useSharedFutureOnParallel |
static boolean |
useVisibilityExtension |
Constructor and Description |
---|
ComponentsConfiguration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isRenderInfoDebuggingEnabled() |
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 CAN_CHECK_GLOBAL_ANIMATOR_SETTINGS
public static final boolean NEEDS_THEME_SYNCHRONIZATION
public static int DEFAULT_BACKGROUND_THREAD_PRIORITY
public static final int DEFAULT_CHANGE_SET_THREAD_PRIORITY
public static boolean isDebugModeEnabled
public static boolean isDebugHierarchyEnabled
public static boolean debugHighlightInteractiveBounds
public static boolean enableLithoViewDebugOverlay
public static boolean debugHighlightMountBounds
public static boolean isEndToEndTestRun
IS_TESTINGsystem property at startup but can be overridden at runtime.
public static boolean isAnimationDisabled
public static boolean forceEnableTransitionsForInstrumentationTests
public static boolean enableOnErrorHandling
OnError
.public static boolean enableErrorBoundaryComponent
public static boolean useGlobalKeys
public static boolean useNewGenerateMechanismForGlobalKeys
public static boolean unmountAllWhenComponentTreeSetToNull
public static LayoutThreadPoolConfiguration threadPoolForBackgroundThreadsConfig
public static LayoutThreadPoolConfiguration threadPoolConfiguration
public static boolean enableThreadTracingStacktrace
public static boolean inheritPriorityFromUiThread
public static boolean enableShouldCreateLayoutWithNewSizeSpec
public static boolean onlyProcessAutogeneratedTransitionIdsWhenNecessary
public static boolean isReconciliationEnabled
public static boolean isLayoutDiffingEnabled
public static boolean lazyComparableAnimatedColorDrawable
public static boolean enableRenderInfoDebugging
public static boolean useCancelableLayoutFutures
public static boolean canInterruptAndMoveLayoutsBetweenThreads
public static boolean skipVisChecksForFullyVisible
public static boolean disableGetAnnotationUsage
public static boolean isPoolBisectEnabled
public static String disablePoolsStart
public static String disablePoolsEnd
public static boolean ignoreStateUpdatesForScreenshotTest
public static boolean prioritizeRenderingOnParallel
public static boolean useSharedFutureOnParallel
public static boolean checkNeedsRemeasure
public static boolean disableComponentHostPool
public static LithoPerfBoosterFactory perfBoosterFactory
public static boolean boostPerfLayoutStateFuture
perfBoosterFactory
will be used to indicate that LayoutStateFuture thread
can use the perf boostpublic static boolean shouldUseDeepCloneDuringReconciliation
public static boolean useInternalNodesForLayoutDiffing
public static boolean incrementalVisibilityHandling
public static boolean shouldForceAsyncStateUpdate
public static boolean useExtensionsWithMountDelegate
public static boolean delegateToRenderCoreMount
public static boolean disableTransitionsExtensionForMountDelegate
public static boolean shouldDisableDrawableOutputs
public static boolean useIncrementalMountExtension
public static boolean useVisibilityExtension
public static boolean shouldForceComponentUpdateOnOrientationChange
false
we won't force Component to update when Device Orientation change, and rely on
its size change.public static boolean isGlobalComponentsPoolEnabled
public static boolean isHooksImplEnabled
true
internal hooks implementation is applied.public static boolean isIncrementalMountGloballyDisabled
true
, disables incremental mount globally.