public class MountingManager
extends java.lang.Object
FabricUIManager#scheduleMountItems(int, MountItem[])
on the UI thread.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
MountingManager(ViewManagerRegistry viewManagerRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
addRootView(int reactRootTag,
android.view.View rootView)
This mutates the rootView, which is an Android View, so this should only be called on the UI
thread.
|
void |
addViewAt(int parentTag,
int tag,
int index) |
void |
clearJSResponder()
Clears the JS Responder specified by
setJSResponder(int, int, boolean) . |
void |
createView(ThemedReactContext themedReactContext,
java.lang.String componentName,
int reactTag,
ReadableMap props,
StateWrapper stateWrapper,
boolean isLayoutable) |
void |
deleteView(int reactTag) |
EventEmitterWrapper |
getEventEmitter(int reactTag) |
long |
measure(android.content.Context context,
java.lang.String componentName,
ReadableMap localData,
ReadableMap props,
ReadableMap state,
float width,
YogaMeasureMode widthMode,
float height,
YogaMeasureMode heightMode,
int[] attachmentsPositions) |
void |
preallocateView(ThemedReactContext reactContext,
java.lang.String componentName,
int reactTag,
ReadableMap props,
StateWrapper stateWrapper,
boolean isLayoutable) |
void |
receiveCommand(int reactTag,
int commandId,
ReadableArray commandArgs)
Deprecated.
|
void |
receiveCommand(int reactTag,
java.lang.String commandId,
ReadableArray commandArgs) |
void |
removeViewAt(int parentTag,
int index) |
void |
sendAccessibilityEvent(int reactTag,
int eventType) |
void |
setJSResponder(int reactTag,
int initialReactTag,
boolean blockNativeResponder)
Set the JS responder for the view associated with the tags received as a parameter.
|
void |
updateEventEmitter(int reactTag,
EventEmitterWrapper eventEmitter) |
void |
updateLayout(int reactTag,
int x,
int y,
int width,
int height) |
void |
updateLocalData(int reactTag,
ReadableMap newLocalData) |
void |
updatePadding(int reactTag,
int left,
int top,
int right,
int bottom) |
void |
updateProps(int reactTag,
ReadableMap props) |
void |
updateState(int reactTag,
StateWrapper stateWrapper) |
public MountingManager(ViewManagerRegistry viewManagerRegistry)
public void addRootView(int reactRootTag, android.view.View rootView)
reactRootTag
- rootView
- public void addViewAt(int parentTag, int tag, int index)
@Deprecated public void receiveCommand(int reactTag, int commandId, ReadableArray commandArgs)
public void receiveCommand(int reactTag, java.lang.String commandId, ReadableArray commandArgs)
public void sendAccessibilityEvent(int reactTag, int eventType)
public void removeViewAt(int parentTag, int index)
public void createView(ThemedReactContext themedReactContext, java.lang.String componentName, int reactTag, ReadableMap props, StateWrapper stateWrapper, boolean isLayoutable)
public void updateProps(int reactTag, ReadableMap props)
public void updateLayout(int reactTag, int x, int y, int width, int height)
public void updatePadding(int reactTag, int left, int top, int right, int bottom)
public void deleteView(int reactTag)
public void updateLocalData(int reactTag, ReadableMap newLocalData)
public void updateState(int reactTag, StateWrapper stateWrapper)
public void preallocateView(ThemedReactContext reactContext, java.lang.String componentName, int reactTag, ReadableMap props, StateWrapper stateWrapper, boolean isLayoutable)
public void updateEventEmitter(int reactTag, EventEmitterWrapper eventEmitter)
public void setJSResponder(int reactTag, int initialReactTag, boolean blockNativeResponder)
The JSResponder coordinates the return values of the onInterceptTouch method in Android
Views. This allows JS to coordinate when a touch should be handled by JS or by the Android
native views. See JSResponderHandler
for more details.
This method is going to be executed on the UIThread as soon as it is delivered from JS to RN.
Currently, there is no warranty that the view associated with the react tag exists, because this method is not handled by the react commit process.
reactTag
- React tag of the first parent of the view that is NOT virtualinitialReactTag
- React tag of the JS view that initiated the touch operationblockNativeResponder
- If native responder should be blocked or notpublic void clearJSResponder()
setJSResponder(int, int, boolean)
. After this
method is called, all the touch events are going to be handled by JS.public long measure(android.content.Context context, java.lang.String componentName, ReadableMap localData, ReadableMap props, ReadableMap state, float width, YogaMeasureMode widthMode, float height, YogaMeasureMode heightMode, int[] attachmentsPositions)
public EventEmitterWrapper getEventEmitter(int reactTag)