ICatchSurfaceContext class
package com.icatchtek.pancam.customer.surface;public class ICatchSurfaceContextextends java.lang.Objectimplements ICatchISurfaceContext {...}
The event listener interface, which app developer need to implement and write unique logic in the override method eventNotify.
Constructors:
ICatchSurfaceContext
ICatchSurfaceContext(android.view.Surface surfaceEGL)
Constructor, with surface.
Parameters:
surfaceEGL - the surface, notice that The app should use this surface again.
Public methods
finalize
public void finalize()throws java.lang.Throwable
Finalize. the system method(Object).
Overrides:
finalize in class java.lang.Object
Throws:
- java.lang.Throwable
getSurfaceID
public int getSurfaceID()
Get the surface ID.
Specified by**:
getSurfaceID in interface ICatchISurfaceContext
Returns:**
- The ID of this surface.
getSurface
public android.view.Surface getSurface()
Get the original surface.
Specified by**:
getSurface in interface ICatchISurfaceContext
Returns:**
- surface.
setViewPort
public boolean setViewPort(int x,int y,int width,int height)throws IchGLSurfaceNotSetException
Set the view port, the SDK will draw panoramic pictures in this region.
Specified by**:
setViewPort in interface ICatchISurfaceContext.
Parameters:**
- x - The start x.
- y - The start y.
- width - the with.
- height - the height.
Returns:
- Return true if no error happened, otherwise return false.
Throws:
- IchGLSurfaceNotSetException - The surface not set, the surface context should be set to the SDK first.
