.. index:: 
  !FaceLicense.getModuleName Method
  
.. _id3_face_face_license_get_module_name_class_method:

===============================================================================
FaceLicense.getModuleName Method
===============================================================================

Module: :ref:`FaceLicense<id3_face_face_license_class>`

Definition
----------

Retrieves the name of the specified license module.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        @staticmethod
        get_module_name(index: int) -> str

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``str``
          The license module name.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        static String getModuleName(int index)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``String``
          The license module name.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public static string GetModuleName(int index)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``string``
          The license module name.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public static String getModuleName(int index) throws FaceException

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``String``
          The license module name.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public static func getModuleName(index: Int32) throws -> String

      **Parameters**

        .. line-block::

          ``index`` Int32
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``String``
          The license module name.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3FaceLicense_GetModuleName (
            int index, 
            char * name, 
            int * nameSize)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.

          ``name`` char *
          :guilabel:`out` The license module name.

          ``nameSize`` int *
          :guilabel:`in` Size of the 'name' buffer. Receives the minimum required buffer size to hold the 'name' string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in 'name' (excluding terminating NULL character).


      **Returns**

        .. line-block::

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


