MountingManager

open class MountingManager

Class responsible for actually dispatching view updates enqueued via scheduleMountItem on the UI thread.

Constructors

Link copied to clipboard
constructor(@NonNull viewManagerRegistry: ViewManagerRegistry, @NonNull mountItemExecutor: MountingManager.MountItemExecutor)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun attachRootView(surfaceId: Int, @NonNull rootView: View, themedReactContext: ThemedReactContext)
Link copied to clipboard
Clears the JS Responder specified by setJSResponder.
Link copied to clipboard
open fun enqueuePendingEvent(surfaceId: Int, reactTag: Int, eventName: String, canCoalesceEvent: Boolean, @Nullable params: WritableMap, eventCategory: Int)
Link copied to clipboard
open fun experimental_prefetchResource(reactContext: ReactContext, componentName: String, surfaceId: Int, reactTag: Int, params: MapBuffer)
THIS PREFETCH METHOD IS EXPERIMENTAL, DO NOT USE IT FOR PRODUCTION CODE.
Link copied to clipboard
open fun getEventEmitter(surfaceId: Int, reactTag: Int): EventEmitterWrapper
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get SurfaceMountingManager associated with a ReactTag.
Link copied to clipboard
open fun getViewExists(reactTag: Int): Boolean
Link copied to clipboard
open fun isWaitingForViewAttach(surfaceId: Int): Boolean
Link copied to clipboard
open fun measure(@NonNull context: ReactContext, @NonNull componentName: String, @NonNull localData: ReadableMap, @NonNull props: ReadableMap, @NonNull state: ReadableMap, width: Float, @NonNull widthMode: YogaMeasureMode, height: Float, @NonNull heightMode: YogaMeasureMode, @Nullable attachmentsPositions: Array<Float>): Long
Measure a component, given localData, props, state, and measurement information.
Link copied to clipboard
open fun measureMapBuffer(@NonNull context: ReactContext, @NonNull componentName: String, @NonNull localData: MapBuffer, @NonNull props: MapBuffer, @Nullable state: MapBuffer, width: Float, @NonNull widthMode: YogaMeasureMode, height: Float, @NonNull heightMode: YogaMeasureMode, @Nullable attachmentsPositions: Array<Float>): Long
Measure a component, given localData, props, state, and measurement information.
Link copied to clipboard
open fun receiveCommand(surfaceId: Int, reactTag: Int, commandId: Int, @Nullable commandArgs: ReadableArray)
open fun receiveCommand(surfaceId: Int, reactTag: Int, @NonNull commandId: String, @Nullable commandArgs: ReadableArray)
Link copied to clipboard
open fun sendAccessibilityEvent(surfaceId: Int, reactTag: Int, eventType: Int)
Send an accessibility eventType to a Native View.
Link copied to clipboard
open fun startSurface(surfaceId: Int, reactContext: ThemedReactContext, @Nullable rootView: View): SurfaceMountingManager
Starts surface without attaching the view.
Link copied to clipboard
open fun stopSurface(surfaceId: Int)
Link copied to clipboard
open fun surfaceIsStopped(surfaceId: Int): Boolean
Link copied to clipboard
open fun updateProps(reactTag: Int, @Nullable props: ReadableMap)