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 |
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 |
sendAccessibilityEvent(int reactTag,
int eventType)
Dispatch an accessibility event to a view asynchronously.
|
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)
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)
void updateRootLayoutSpecs(int rootTag, int widthMeasureSpec, int heightMeasureSpec)
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
-