Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun <T : View?> addRootView(rootView: T, initialProps: WritableMap?): Int

Registers a new root view. @Deprecated call startSurface instead

Link copied to clipboard

Register a UIManagerListener with this UIManager to receive lifecycle callbacks.

Link copied to clipboard
abstract fun dispatchCommand(reactTag: Int, commandId: Int, commandArgs: ReadableArray?)
abstract fun dispatchCommand(reactTag: Int, commandId: String, commandArgs: ReadableArray?)

Dispatches the commandId received by parameter to the view associated with the reactTag. The command will be processed in the UIThread.

Link copied to clipboard
abstract fun initialize()

This method is called after ReactApplicationContext has been created.

Link copied to clipboard
abstract fun invalidate()

Called before React Native instance is destroyed.

Link copied to clipboard
abstract fun markActiveTouchForTag(surfaceId: Int, reactTag: Int)

Mark a view as currently active for a touch event. This information could be used by the UIManager to decide if a view could be safely destroyed or not.

Link copied to clipboard
abstract fun profileNextBatch()
Link copied to clipboard
abstract fun receiveEvent(reactTag: Int, eventName: String, event: WritableMap?)
abstract fun receiveEvent(surfaceId: Int, reactTag: Int, eventName: String, event: WritableMap?)

This method dispatches events from RN Android code to JS. The delivery of this event will not be queued in EventDispatcher class.

Link copied to clipboard

Unregister a UIManagerListener from this UIManager to stop receiving lifecycle callbacks.

Link copied to clipboard
abstract fun resolveCustomDirectEventName(eventName: String): String?

Resolves Direct Event name exposed to JS from the one known to the Native side.

Link copied to clipboard
abstract fun resolveView(reactTag: Int): View?

Resolves a view based on its reactTag. Do not mutate properties on this view that are already managed by React, as there are no guarantees this changes will be preserved.

Link copied to clipboard
abstract fun sendAccessibilityEvent(reactTag: Int, eventType: Int)

Dispatch an accessibility event to a view asynchronously.

Link copied to clipboard
abstract fun <T : View?> startSurface(rootView: T, moduleName: String, initialProps: WritableMap?, widthMeasureSpec: Int, heightMeasureSpec: Int): Int

Registers a new root view with width and height.

Link copied to clipboard
abstract fun stopSurface(surfaceId: Int)

Stop a surface from running in JS and clears up native memory usage. Assumes that the native View hierarchy has already been cleaned up. Fabric-only.

Link copied to clipboard
abstract fun sweepActiveTouchForTag(surfaceId: Int, reactTag: Int)

Sweep a view as currently not active for a touch event. This tells the UIManager that the view is not being interacted by the user and can safely be destroyed.

Link copied to clipboard

Used by native animated module to bypass the process of updating the values through the shadow view hierarchy. This method will directly update native views, which means that updates for layout-related propertied won't be handled properly. Make sure you know what you're doing before calling this method :)

Link copied to clipboard
abstract fun updateRootLayoutSpecs(rootTag: Int, widthMeasureSpec: Int, heightMeasureSpec: Int, offsetX: Int, offsetY: Int)

Updates the layout specs of the RootShadowNode based on the Measure specs received by parameters. offsetX and offsetY are the position of the RootView within the screen.