Skip to content

com.inscoper.api.FunctionListener

FunctionListener class allows receiving notifications when a function is executed. More...

Public Functions

Name
synchronized void delete()
void swigReleaseOwnership()
void swigTakeOwnership()
void functionExecuted(SubDeviceId subDeviceId, EFunctionType functionType)
Notify function execution.
void functionExecuted(SubDeviceId subDeviceId, EFunctionType functionType, UCharVector valueData, short valueType)
Notify function execution with the returned value data.
FunctionListener()

Protected Functions

Name
FunctionListener(long cPtr, boolean cMemoryOwn)
void finalize()
void swigDirectorDisconnect()
long getCPtr(FunctionListener obj)
long swigRelease(FunctionListener obj)

Protected Attributes

Name
transient boolean swigCMemOwn

Detailed Description

public class com.inscoper.api.FunctionListener;

FunctionListener class allows receiving notifications when a function is executed.

This abstract class provides a callback mechanism for monitoring function execution events.

Public Functions Documentation

function delete

public synchronized void delete()

function swigReleaseOwnership

public void swigReleaseOwnership()

function swigTakeOwnership

public void swigTakeOwnership()

function functionExecuted

public void functionExecuted(
    SubDeviceId subDeviceId,
    EFunctionType functionType
)

Notify function execution.

Parameters:

  • subDeviceId : The sub-device ID
  • functionType : The type of the executed function

This callback method is invoked each time a function is executed. Must be overridden.

function functionExecuted

public void functionExecuted(
    SubDeviceId subDeviceId,
    EFunctionType functionType,
    UCharVector valueData,
    short valueType
)

Notify function execution with the returned value data.

Parameters:

  • subDeviceId : The sub-device ID
  • functionType : The type of the executed function
  • valueData : The raw value data bytes from the InscoperBox response
  • valueType : The type tag of the value (from AttrParams2)

This callback method is invoked when a function is executed and returns a value (typically for GET operations). Override this method to receive the value directly without needing a separate getValue() call.

The default implementation delegates to the 2-argument version for backward compatibility.

function FunctionListener

public FunctionListener()

Protected Functions Documentation

function FunctionListener

protected FunctionListener(
    long cPtr,
    boolean cMemoryOwn
)

function finalize

protected void finalize()

function swigDirectorDisconnect

protected void swigDirectorDisconnect()

function getCPtr

protected static long getCPtr(
    FunctionListener obj
)

function swigRelease

protected static long swigRelease(
    FunctionListener obj
)

Protected Attributes Documentation

variable swigCMemOwn

transient boolean swigCMemOwn;

Updated on 2026-09-03 at 12:14:19 +0200