.. index:: 
  !TrackedFaceList.add Method
  
.. _id3_face_tracked_face_list_add_class_method:

===============================================================================
TrackedFaceList.add Method
===============================================================================

Module: :ref:`TrackedFaceList<id3_face_tracked_face_list_class>`

Definition
----------

Adds an item to the TrackedFaceList object.


.. tab-set::

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

      .. code:: Python

        add(self, tracked_face_item: TrackedFace) -> None

      **Parameters**

        .. line-block::

          ``tracked_face_item`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to add.


      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        void add(TrackedFace trackedFaceItem)

      **Parameters**

        .. line-block::

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to add.


      **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 void Add(TrackedFace trackedFaceItem)

      **Parameters**

        .. line-block::

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to add.


      **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 void add(TrackedFace trackedFaceItem) throws FaceException

      **Parameters**

        .. line-block::

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to add.


      **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 func add(trackedFaceItem: TrackedFace) throws

      **Parameters**

        .. line-block::

          ``trackedFaceItem`` :ref:`TrackedFace<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to add.


      **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 id3TrackedFaceList_Add (
            ID3_TRACKED_FACE_LIST hTrackedFaceList, 
            ID3_TRACKED_FACE hTrackedFaceItem)

      **Parameters**

        .. line-block::

          ``hTrackedFaceList`` :ref:`ID3_TRACKED_FACE_LIST<id3_face_tracked_face_list_class>`
          :guilabel:`in` Handle to the TrackedFaceList object.

          ``hTrackedFaceItem`` :ref:`ID3_TRACKED_FACE<id3_face_tracked_face_class>`
          :guilabel:`in` TrackedFace item to add.


      **Returns**

        .. line-block::

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


