UIImplementation

open class UIImplementation

A class that is used to receive React commands from JS and translate them into a shadow node hierarchy that is then mapped to a native view hierarchy.

Types

Link copied to clipboard
Interface definition for a callback to be invoked when the layout has been updated

Functions

Link copied to clipboard
open fun addUIBlock(block: UIBlock)
Link copied to clipboard
open fun clearJSResponder()
Link copied to clipboard
Configure an animation to be used for the native layout changes, and native views creation.
Link copied to clipboard
open fun createView(tag: Int, className: String, rootViewTag: Int, props: ReadableMap)
Invoked by React to create a new node with a given tag, class name and properties.
Link copied to clipboard
open fun dispatchViewManagerCommand(reactTag: Int, commandId: Int, @Nullable commandArgs: ReadableArray)
open fun dispatchViewManagerCommand(reactTag: Int, commandId: String, @Nullable commandArgs: ReadableArray)
Link copied to clipboard
open fun dispatchViewUpdates(batchId: Int)
Invoked at the end of the transaction to commit any updates to the node hierarchy.
Link copied to clipboard
open fun findSubviewIn(reactTag: Int, targetX: Float, targetY: Float, callback: Callback)
Find the touch target child native view in the supplied root view hierarchy, given a react target location.
Link copied to clipboard
open fun getRootViewNum(): Int
Return root view num
Link copied to clipboard
open fun manageChildren(viewTag: Int, @Nullable moveFrom: ReadableArray, @Nullable moveTo: ReadableArray, @Nullable addChildTags: ReadableArray, @Nullable addAtIndices: ReadableArray, @Nullable removeFrom: ReadableArray)
Invoked when there is a mutation in a node tree.
Link copied to clipboard
open fun measure(reactTag: Int, callback: Callback)
Determines the location on screen, width, and height of the given view relative to the root view and returns the values via an async callback.
Link copied to clipboard
open fun measureInWindow(reactTag: Int, callback: Callback)
Determines the location on screen, width, and height of the given view relative to the device screen and returns the values via an async callback.
Link copied to clipboard
open fun measureLayout(tag: Int, ancestorTag: Int, errorCallback: Callback, successCallback: Callback)
Measures the view specified by tag relative to the given ancestorTag.
Link copied to clipboard
open fun measureLayoutRelativeToParent(tag: Int, errorCallback: Callback, successCallback: Callback)
Like measure and measureLayout but measures relative to the immediate parent.
Link copied to clipboard
Link copied to clipboard
open fun onHostDestroy()
Link copied to clipboard
open fun onHostPause()
Link copied to clipboard
open fun onHostResume()
Link copied to clipboard
open fun prependUIBlock(block: UIBlock)
Link copied to clipboard
open fun profileNextBatch()
Link copied to clipboard
open fun <T : View?> registerRootView(rootView: T, tag: Int, context: ThemedReactContext)
Registers a root node with a given tag, size and ThemedReactContext and adds it to a node registry.
Link copied to clipboard
Link copied to clipboard
open fun removeRootShadowNode(rootViewTag: Int)
Unregisters a root node with a given tag from the shadow node registry
Link copied to clipboard
open fun removeRootView(rootViewTag: Int)
Unregisters a root node with a given tag.
Link copied to clipboard
open fun replaceExistingNonRootView(oldTag: Int, newTag: Int)
Replaces the View specified by oldTag with the View specified by newTag within oldTag's parent.
Link copied to clipboard
open fun resolveRootTagFromReactTag(reactTag: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun sendAccessibilityEvent(tag: Int, eventType: Int)
Link copied to clipboard
open fun setChildren(viewTag: Int, childrenTags: ReadableArray)
An optimized version of manageChildren that is used for initial setting of child views.
Link copied to clipboard
open fun setJSResponder(reactTag: Int, blockNativeResponder: Boolean)
Link copied to clipboard
LayoutAnimation API on Android is currently experimental.
Link copied to clipboard
open fun setViewHierarchyUpdateDebugListener(@Nullable listener: NotThreadSafeViewHierarchyUpdateDebugListener)
Link copied to clipboard
open fun setViewLocalData(tag: Int, data: Any)
Link copied to clipboard
Used by native animated module to bypass the process of updating the values through the shadow view hierarchy.
Link copied to clipboard
open fun updateInsetsPadding(nodeViewTag: Int, top: Int, left: Int, bottom: Int, right: Int)
Link copied to clipboard
open fun updateNodeSize(nodeViewTag: Int, newWidth: Int, newHeight: Int)
Invoked when native view that corresponds to a root node, or acts as a root view (ie.
Link copied to clipboard
open fun updateRootView(rootCSSNode: ReactShadowNode, widthMeasureSpec: Int, heightMeasureSpec: Int)
open fun updateRootView(tag: Int, widthMeasureSpec: Int, heightMeasureSpec: Int)
Updates the styles of the ReactShadowNode based on the Measure specs received by parameters.
Link copied to clipboard
open fun updateView(tag: Int, className: String, props: ReadableMap)
Invoked by React to create a new node with a given tag has its properties changed.
Link copied to clipboard
open fun viewIsDescendantOf(reactTag: Int, ancestorReactTag: Int, callback: Callback)
Check if the first shadow node is the descendant of the second shadow node