RenderCore/Config/CKGlobalConfig.h (23 lines of code) (raw):

/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #import <RenderCore/CKDefines.h> #if CK_NOT_SWIFT #import <Foundation/Foundation.h> #import <RenderCore/RCComponentCoalescingMode.h> #import <RenderCore/RCComponentBasedAccessibilityMode.h> @protocol CKAnalyticsListener; struct CKGlobalConfig { /** Default analytics listener which will be used in cased that no other listener is provided */ id<CKAnalyticsListener> defaultAnalyticsListener = nil; /** If enabled, CKBuildComponent will always build the component tree (CKTreeNode), even if there is no Render component in the tree*/ BOOL alwaysBuildRenderTree = NO; /** Uses the overlayout layout component child size to assign size properties on yoga node instead of the size of overlayout component itself */ BOOL useNodeSizeOverlayComponent = NO; /** Instead of setting resolving the percentage size manually from parent size set the percent on the yoga node itself instead */ BOOL setPercentOnChildNode = NO; /** Use new method of performing optimistic mutations which can last beyond next mount */ BOOL useNewStyleOptimisticMutations = NO; /** Component coalescing mode. */ RCComponentCoalescingMode coalescingMode = RCComponentCoalescingModeRender; /** Component based accessibility mode */ RCComponentBasedAccessibilityMode componentAXMode = RCComponentBasedAccessibilityModeDisabled; /** Kill-switch to disable render-to-nil in coalesced composite components. */ BOOL disableRenderToNilInCoalescedCompositeComponents = NO; /** Enables workaround for https://bugs.llvm.org/show_bug.cgi?id=48207 */ BOOL clangCStructLeakWorkaroundEnabled = NO; /** Force mounting views for component with accessibilityContext set even when VoiceOver is not enabled */ BOOL alwaysMountViewForAccessibityContextComponent = NO; /** Enables caching of the layout for reused components. */ BOOL enableLayoutCaching = NO; /** In Specs we provide a custom identifier, which is a function pointer to the handler function. This bool enables using this identifier in == operator instead of comparing blocks. */ BOOL actionShouldCompareCustomIdentifier = NO; /** Flag to use the custom identifer provided by the spec instead of block pointer when generating an identifier string for an action */ BOOL actionShouldUseCustomIdentifierInIdentifierString = NO; }; CKGlobalConfig CKReadGlobalConfig(); #endif