.. index:: 
  !BiosealLicense.checkLicense Method
  
.. _id3_bioseal_bioseal_license_check_license_class_method:

===============================================================================
BiosealLicense.checkLicense Method
===============================================================================

Module: :ref:`BiosealLicense<id3_bioseal_bioseal_license_class>`

Definition
----------

Checks a license from a file.

This function does two things:

- First it loads the license from a file using the given path

- Then it checks the validity of the license regarding the host it is called on (Windows, Linux, Android ...)

.. important:: Calling this function is required to get access to the license member getters.

.. note:: The optional parameter is required on Android and must be the JNIEnv* pointer casted as a void*. It can be set as NULL for other devices.


.. code:: Dart

    static void checkLicense(String? licensePath)

**Parameters**

.. line-block::

    ``licensePath`` String
    :guilabel:`in` Absolute or relative path to the license file.


**Exceptions**

.. line-block::

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



