.. index:: 
  !ResourceCallbackHandler Callback
  
.. _id3_bioseal_resource_callback_handler_callback:

===============================================================================
ResourceCallbackHandler Callback
===============================================================================


Definition
----------

Represents the method that will handle a resource callback.


.. code:: Python

    resource_callback_handler(context: object, args: ResourceCallbackArgs) -> int

**Parameters**

.. line-block::

    ``context`` object
    :guilabel:`in` The callback context.

    ``args`` :ref:`ResourceCallbackArgs<id3_bioseal_resource_callback_args_class>`
    :guilabel:`in` The resource callback arguments. See ResourceCallbackArgs for details.


**Returns**

.. line-block::

    int
    An error code.
    See :ref:`BiosealError<id3_bioseal_bioseal_error_enum>` file for the list of possible error codes.

.. code:: Dart

    typedef ResourceCallbackHandler = int Function(Object context, ResourceCallbackArgs args)

**Parameters**

.. line-block::

    ``context`` Object
    :guilabel:`in` The callback context.

    ``args`` :ref:`ResourceCallbackArgs<id3_bioseal_resource_callback_args_class>`
    :guilabel:`in` The resource callback arguments. See ResourceCallbackArgs for details.


**Returns**

.. line-block::

    int
    An error code.
    See :ref:`BiosealError<id3_bioseal_bioseal_error_enum>` file for the list of possible error codes.

.. code:: C#

    public delegate int _ResourceCallbackHandler(IntPtr context, IntPtr args);

**Parameters**

.. line-block::

    ``context`` IntPtr
    :guilabel:`in` The callback context.

    ``args`` :ref:`ResourceCallbackArgs<id3_bioseal_resource_callback_args_class>`
    :guilabel:`in` The resource callback arguments. See ResourceCallbackArgs for details.


**Returns**

.. line-block::

    int
    An error code.
    See :ref:`BiosealError<id3_bioseal_bioseal_error_enum>` file for the list of possible error codes.

.. code:: Java

    @FunctionalInterface
    public interface ResourceCallbackHandler {
        int callback(Object context, ResourceCallbackArgs args)
    }

**Parameters**

.. line-block::

    ``context`` Object
    :guilabel:`in` The callback context.

    ``args`` :ref:`ResourceCallbackArgs<id3_bioseal_resource_callback_args_class>`
    :guilabel:`in` The resource callback arguments. See ResourceCallbackArgs for details.


**Returns**

.. line-block::

    int
    An error code.
    See :ref:`BiosealError<id3_bioseal_bioseal_error_enum>` file for the list of possible error codes.

.. code:: Swift

    public func resourceCallbackHandler(context: void, args: ResourceCallbackArgs) throws

**Parameters**

.. line-block::

    ``context`` void
    :guilabel:`in` The callback context.

    ``args`` :ref:`ResourceCallbackArgs<id3_bioseal_resource_callback_args_class>`
    :guilabel:`in` The resource callback arguments. See ResourceCallbackArgs for details.


**Returns**

.. line-block::

    int
    An error code.
    See :ref:`BiosealError<id3_bioseal_bioseal_error_enum>` file for the list of possible error codes.

.. code:: C

    typedef int (* id3BiosealResourceCallbackHandler) (
        void * context, 
        ID3_BIOSEAL_RESOURCE_CALLBACK_ARGS hArgs)

**Parameters**

.. line-block::

    ``context`` void *
    :guilabel:`in` The callback context.

    ``hArgs`` :ref:`ID3_BIOSEAL_RESOURCE_CALLBACK_ARGS<id3_bioseal_resource_callback_args_class>`
    :guilabel:`in` The resource callback arguments. See ResourceCallbackArgs for details.


**Returns**

.. line-block::

    int
    An error code.
    See :ref:`id3BiosealError<id3_bioseal_bioseal_error_enum>` file for the list of possible error codes.


