.. index:: 
  !DecryptionCallbackHandler Callback
  
.. _id3_bioseal_decryption_callback_handler_callback:

===============================================================================
DecryptionCallbackHandler Callback
===============================================================================


Definition
----------

Represents the method that will handle a decryption callback.


.. code:: Python

    decryption_callback_handler(context: object, args: DecryptionArgs) -> int

**Parameters**

.. line-block::

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

    ``args`` :ref:`DecryptionArgs<id3_bioseal_decryption_args_class>`
    :guilabel:`in` The decryption callback arguments. See DecryptionArgs 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 DecryptionCallbackHandler = int Function(Object context, DecryptionArgs args)

**Parameters**

.. line-block::

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

    ``args`` :ref:`DecryptionArgs<id3_bioseal_decryption_args_class>`
    :guilabel:`in` The decryption callback arguments. See DecryptionArgs 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 _DecryptionCallbackHandler(IntPtr context, IntPtr args);

**Parameters**

.. line-block::

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

    ``args`` :ref:`DecryptionArgs<id3_bioseal_decryption_args_class>`
    :guilabel:`in` The decryption callback arguments. See DecryptionArgs 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 DecryptionCallbackHandler {
        int callback(Object context, DecryptionArgs args)
    }

**Parameters**

.. line-block::

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

    ``args`` :ref:`DecryptionArgs<id3_bioseal_decryption_args_class>`
    :guilabel:`in` The decryption callback arguments. See DecryptionArgs 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 decryptionCallbackHandler(context: void, args: DecryptionArgs) throws

**Parameters**

.. line-block::

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

    ``args`` :ref:`DecryptionArgs<id3_bioseal_decryption_args_class>`
    :guilabel:`in` The decryption callback arguments. See DecryptionArgs 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 (* id3BiosealDecryptionCallbackHandler) (
        void * context, 
        ID3_BIOSEAL_DECRYPTION_ARGS hArgs)

**Parameters**

.. line-block::

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

    ``hArgs`` :ref:`ID3_BIOSEAL_DECRYPTION_ARGS<id3_bioseal_decryption_args_class>`
    :guilabel:`in` The decryption callback arguments. See DecryptionArgs 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.


