ICatchIPancamControl interface

  1. package com.icatchtek.pancam.customer;
  2. public interface ICatchIPancamControl {
  3. ...
  4. }

This class is used to control properties, settings related to the current session, such as adding and removing event listeners.

Public methods

addEventListener

  1. void addEventListener(int eventID,
  2. ICatchIPancamListener listener)
  3. throws com.icatchtek.reliant.customer.exception.IchListenerExistsException,
  4. com.icatchtek.reliant.customer.exception.IchInvalidSessionException

Add event listener to this current session.
Parameters:

  • eventID - The eventID with which this event listener belongs to.
  • listener - The event listener which will be added.**

Throws:

  • com.icatchtek.reliant.customer.exception.IchListenerExistsException - Indicates the corresponded event listener already exists.
  • com.icatchtek.reliant.customer.exception.IchInvalidSessionException - Invalid session, the session may be destroyed.

removeEventListener

  1. void removeEventListener(int eventID,
  2. ICatchIPancamListener listener)
  3. throws com.icatchtek.reliant.customer.exception.IchListenerNotExistsException,
  4. com.icatchtek.reliant.customer.exception.IchInvalidSessionException

Remove event listener from this current session.
Parameters:

  • eventID - The eventID with which this event listener belongs to.
  • listener - The event listener which will be removed.**

Throws:

  • com.icatchtek.reliant.customer.exception.IchListenerNotExistsException - Indicates the corresponded event listener not exists.
  • com.icatchtek.reliant.customer.exception.IchInvalidSessionException - Invalid session, the session may be destroyed.