Package 

Interface SurfaceHandler


  • @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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()

        Provides current surface id. Id should be updated after each call to

      • setSurfaceId

         abstract void setSurfaceId(int surfaceId)

        Updates current surface id. Id should be updated after each call to stop

      • setLayoutConstraints

         abstract void setLayoutConstraints(int widthMeasureSpec, int heightMeasureSpec, int offsetX, int offsetY, boolean doLeftAndRightSwapInRTL, boolean isRTL, float pixelDensity)
      • setMountable

         abstract void setMountable(boolean mountable)