-
@ThreadSafe() public interface SurfaceHandler
Represents a Java variant of the surface, its status and inner data required to display it.
-
-
Method Summary
Modifier and Type Method Description abstract void
start()
Starts the surface if the surface is not running abstract void
stop()
Stops the surface if it is currently running abstract void
setProps(NativeMap props)
abstract int
getSurfaceId()
Provides current surface id. abstract void
setSurfaceId(int surfaceId)
Updates current surface id. abstract boolean
isRunning()
abstract String
getModuleName()
abstract void
setLayoutConstraints(int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY, boolean doLeftAndRightSwapInRTL, boolean isRTL, float pixelDensity)
abstract void
setMountable(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)
-
-
-
-