-
@ThreadSafe() public interface SurfaceHandlerRepresents a Java variant of the surface, its status and inner data required to display it.
-
-
Method Summary
Modifier and Type Method Description abstract voidstart()Starts the surface if the surface is not running abstract voidstop()Stops the surface if it is currently running abstract voidsetProps(NativeMap props)abstract intgetSurfaceId()Provides current surface id. abstract voidsetSurfaceId(int surfaceId)Updates current surface id. abstract booleanisRunning()abstract StringgetModuleName()abstract voidsetLayoutConstraints(int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY, boolean doLeftAndRightSwapInRTL, boolean isRTL, float pixelDensity)abstract voidsetMountable(boolean mountable)-
-
Method Detail
-
start
abstract void start()
Starts the surface if the surface is not running
-
stop
abstract void stop()
Stops the surface if it is currently running
-
getSurfaceId
abstract int getSurfaceId()
-
setSurfaceId
abstract void setSurfaceId(int surfaceId)
Updates current surface id. Id should be updated after each call to stop
-
isRunning
abstract boolean isRunning()
-
getModuleName
abstract String getModuleName()
-
setLayoutConstraints
abstract void setLayoutConstraints(int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY, boolean doLeftAndRightSwapInRTL, boolean isRTL, float pixelDensity)
-
setMountable
abstract void setMountable(boolean mountable)
-
-
-
-