-
public interface ReactRootInterface for the root native view of a React native application
-
-
Method Summary
Modifier and Type Method Description abstract BundlegetAppProperties()Return cached launch properties for app abstract StringgetInitialUITemplate()abstract StringgetJSModuleName()abstract intgetUIManagerType()Fabric or Default UI Manager, see UIManagerType abstract intgetRootViewTag()abstract voidsetRootViewTag(int rootViewTag)abstract voidrunApplication()Calls into JS to start the React application. abstract voidonStage(int stage)Handler for stages com.facebook.react.surface.ReactStage abstract ViewGroupgetRootViewGroup()Return native view for root abstract intgetWidthMeasureSpec()abstract intgetHeightMeasureSpec()abstract voidsetShouldLogContentAppeared(boolean shouldLogContentAppeared)Sets a flag that determines whether to log that content appeared on next view added. abstract StringgetSurfaceID()abstract AtomicIntegergetState()-
-
Method Detail
-
getAppProperties
@Nullable() abstract Bundle getAppProperties()
Return cached launch properties for app
-
getInitialUITemplate
@Nullable() abstract String getInitialUITemplate()
-
getJSModuleName
abstract String getJSModuleName()
-
getUIManagerType
abstract int getUIManagerType()
Fabric or Default UI Manager, see UIManagerType
-
getRootViewTag
abstract int getRootViewTag()
-
setRootViewTag
abstract void setRootViewTag(int rootViewTag)
-
runApplication
abstract void runApplication()
Calls into JS to start the React application.
-
onStage
abstract void onStage(int stage)
Handler for stages com.facebook.react.surface.ReactStage
-
getRootViewGroup
abstract ViewGroup getRootViewGroup()
Return native view for root
-
getWidthMeasureSpec
abstract int getWidthMeasureSpec()
-
getHeightMeasureSpec
abstract int getHeightMeasureSpec()
-
setShouldLogContentAppeared
abstract void setShouldLogContentAppeared(boolean shouldLogContentAppeared)
Sets a flag that determines whether to log that content appeared on next view added.
-
getSurfaceID
@Deprecated()@Nullable() abstract String getSurfaceID()
-
getState
abstract AtomicInteger getState()
-
-
-
-