-
- All Implemented Interfaces:
-
com.facebook.react.fabric.SurfaceHandler
public class SurfaceHandlerBinding implements SurfaceHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceSurfaceHandlerBinding.DisplayModeTypeDef
-
Field Summary
Fields Modifier and Type Field Description public final static intDISPLAY_MODE_VISIBLEpublic final static intDISPLAY_MODE_SUSPENDEDpublic final static intDISPLAY_MODE_HIDDEN
-
Constructor Summary
Constructors Constructor Description SurfaceHandlerBinding(String moduleName)
-
Method Summary
Modifier and Type Method Description intgetSurfaceId()Provides current surface id. voidsetSurfaceId(int surfaceId)Updates current surface id. StringgetModuleName()voidstart()Starts the surface if the surface is not running voidstop()Stops the surface if it is currently running booleanisRunning()voidsetLayoutConstraints(int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY, boolean doLeftAndRightSwapInRTL, boolean isRTL, float pixelDensity)voidsetProps(NativeMap props)voidsetMountable(boolean mountable)-
-
Constructor Detail
-
SurfaceHandlerBinding
SurfaceHandlerBinding(String moduleName)
-
-
Method Detail
-
getSurfaceId
int getSurfaceId()
-
setSurfaceId
void setSurfaceId(int surfaceId)
Updates current surface id. Id should be updated after each call to stop
-
getModuleName
String getModuleName()
-
start
void start()
Starts the surface if the surface is not running
-
stop
void stop()
Stops the surface if it is currently running
-
isRunning
boolean isRunning()
-
setLayoutConstraints
void setLayoutConstraints(int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY, boolean doLeftAndRightSwapInRTL, boolean isRTL, float pixelDensity)
-
setMountable
void setMountable(boolean mountable)
-
-
-
-