public interface UIManager extends JSIModule, PerformanceCounter
Modifier and Type | Method and Description |
---|---|
<T extends android.view.View> |
addRootView(T rootView,
WritableMap initialProps,
java.lang.String initialUITemplate)
Registers a new root view.
|
void |
addUIManagerEventListener(UIManagerListener listener)
Register a
UIManagerListener with this UIManager to receive lifecycle callbacks. |
void |
dispatchCommand(int reactTag,
int commandId,
ReadableArray commandArgs)
Dispatches the commandId received by parameter to the view associated with the reactTag.
|
void |
dispatchCommand(int reactTag,
java.lang.String commandId,
ReadableArray commandArgs)
Dispatches the commandId received by parameter to the view associated with the reactTag.
|
<T> T |
getEventDispatcher() |
void |
receiveEvent(int reactTag,
java.lang.String eventName,
WritableMap event)
This method dispatches events from RN Android code to JS.
|
void |
removeUIManagerEventListener(UIManagerListener listener)
Unregister a
UIManagerListener from this UIManager to stop receiving lifecycle
callbacks. |
java.lang.String |
resolveCustomDirectEventName(java.lang.String eventName)
Deprecated.
|
void |
sendAccessibilityEvent(int reactTag,
int eventType)
Dispatch an accessibility event to a view asynchronously.
|
<T extends android.view.View> |
startSurface(T rootView,
java.lang.String moduleName,
WritableMap initialProps,
int widthMeasureSpec,
int heightMeasureSpec)
Registers a new root view with width and height.
|
void |
stopSurface(int surfaceId)
Stop a surface from running in JS and clears up native memory usage.
|
void |
synchronouslyUpdateViewOnUIThread(int reactTag,
ReadableMap props)
Used by native animated module to bypass the process of updating the values through the shadow
view hierarchy.
|
void |
updateRootLayoutSpecs(int rootTag,
int widthMeasureSpec,
int heightMeasureSpec,
int offsetX,
int offsetY)
Updates the layout specs of the RootShadowNode based on the Measure specs received by
parameters.
|
initialize, onCatalystInstanceDestroy
getPerformanceCounters, profileNextBatch
<T extends android.view.View> int addRootView(T rootView, WritableMap initialProps, java.lang.String initialUITemplate)
<T extends android.view.View> int startSurface(T rootView, java.lang.String moduleName, WritableMap initialProps, int widthMeasureSpec, int heightMeasureSpec)
void stopSurface(int surfaceId)
void updateRootLayoutSpecs(int rootTag, int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY)
void dispatchCommand(int reactTag, int commandId, ReadableArray commandArgs)
Receiving commands as ints is deprecated and will be removed in a future release.
Pre-Fabric, this is only called on the Native Module Thread.
reactTag
- int
that identifies the view that will receive this commandcommandId
- int
command idcommandArgs
- ReadableArray
parameters associated with the commandvoid dispatchCommand(int reactTag, java.lang.String commandId, ReadableArray commandArgs)
Pre-Fabric, this is only called on the Native Module Thread.
reactTag
- int
that identifies the view that will receive this commandcommandId
- String
command idcommandArgs
- ReadableArray
parameters associated with the command<T> T getEventDispatcher()
EventDispatcher
object that is used by this class.void synchronouslyUpdateViewOnUIThread(int reactTag, ReadableMap props)
tag
- int
that identifies the view that will be updatedprops
- ReadableMap
props that should be immediately updated in viewvoid sendAccessibilityEvent(int reactTag, int eventType)
Pre-Fabric, this is only called on the Native Module Thread.
reactTag
- eventType
- void addUIManagerEventListener(UIManagerListener listener)
UIManagerListener
with this UIManager to receive lifecycle callbacks.listener
- void removeUIManagerEventListener(UIManagerListener listener)
UIManagerListener
from this UIManager to stop receiving lifecycle
callbacks.listener
- void receiveEvent(int reactTag, java.lang.String eventName, WritableMap event)
reactTag
- tageventName
- name of the eventevent
- parameters@Deprecated java.lang.String resolveCustomDirectEventName(java.lang.String eventName)