.. index:: 
  !BiosealLicense.activateSerialKeyBuffer Method
  
.. _id3_bioseal_bioseal_license_activate_serial_key_buffer_class_method:

===============================================================================
BiosealLicense.activateSerialKeyBuffer Method
===============================================================================

Module: :ref:`BiosealLicense<id3_bioseal_bioseal_license_class>`

Definition
----------

Activates a license using a serial key and returns the license in a data buffer.


.. code:: Dart

    static Uint8List activateSerialKeyBuffer(String? hardwareCode, String? serialKey, String? commentary)

**Parameters**

.. line-block::

    ``hardwareCode`` String
    :guilabel:`in` The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

    ``serialKey`` String
    :guilabel:`in` The id3 serial key.

    ``commentary`` String
    :guilabel:`in` Commentary associated to this license activation.


**Returns**

.. line-block::

    ``Uint8List``
    The license data buffer.

**Exceptions**

.. line-block::

    :ref:`BiosealException<id3_bioseal_bioseal_exception>`
    An error has occurred during Bioseal Library execution.



