ICatchSurfaceContext class

  1. package com.icatchtek.pancam.customer.surface;
  2. public class ICatchSurfaceContext
  3. extends java.lang.Object
  4. implements ICatchISurfaceContext {
  5. ...
  6. }

The event listener interface, which app developer need to implement and write unique logic in the override method eventNotify.

Constructors:

ICatchSurfaceContext

  1. ICatchSurfaceContext(android.view.Surface surfaceEGL)

Constructor, with surface.
Parameters:
surfaceEGL - the surface, notice that The app should use this surface again.

Public methods

finalize

  1. public void finalize()
  2. throws java.lang.Throwable

Finalize. the system method(Object).
Overrides:
finalize in class java.lang.Object
Throws:

  • java.lang.Throwable

getSurfaceID

  1. public int getSurfaceID()

Get the surface ID.
Specified by**:
getSurfaceID in interface ICatchISurfaceContext
Returns:**

  • The ID of this surface.

getSurface

  1. public android.view.Surface getSurface()

Get the original surface.
Specified by**:
getSurface in interface ICatchISurfaceContext
Returns:**

  • surface.


setViewPort

  1. public boolean setViewPort(int x,
  2. int y,
  3. int width,
  4. int height)
  5. 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.