mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Reviewed By: fkgozali Differential Revision: D8458980 fbshipit-source-id: 2411fb8106288f65cabdef12917d0f5086d1723a
36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
package com.facebook.react.bridge;
|
|
|
|
import com.facebook.react.uimanager.common.MeasureSpecProvider;
|
|
import com.facebook.react.uimanager.common.SizeMonitoringFrameLayout;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
public interface UIManager extends JSIModule, PerformanceCounter {
|
|
|
|
/**
|
|
* Registers a new root view.
|
|
*/
|
|
<T extends SizeMonitoringFrameLayout & MeasureSpecProvider> int addRootView(final T rootView);
|
|
|
|
/**
|
|
* Updates the layout specs of the RootShadowNode based on the Measure specs received by
|
|
* parameters.
|
|
*/
|
|
void updateRootLayoutSpecs(int rootTag, int widthMeasureSpec, int heightMeasureSpec);
|
|
|
|
/**
|
|
* Dispatches the commandId received by parameter to the view associated with the reactTag.
|
|
* The command will be processed in the UIThread.
|
|
*
|
|
* @param reactTag {@link int} that identifies the view that will receive this command
|
|
* @param commandId {@link int} command id
|
|
* @param commandArgs {@link ReadableArray} parameters associated with the command
|
|
*/
|
|
void dispatchCommand(int reactTag, int commandId, @Nullable ReadableArray commandArgs);
|
|
|
|
void setJSResponder(int reactTag, boolean blockNativeResponder);
|
|
|
|
void clearJSResponder();
|
|
|
|
}
|