.. index:: 
  !DetectedFaceList.clone Method
  
.. _id3_face_detected_face_list_clone_class_method:

===============================================================================
DetectedFaceList.clone Method
===============================================================================

Module: :ref:`DetectedFaceList<id3_face_detected_face_list_class>`

Definition
----------

Clones the DetectedFaceList object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> DetectedFaceList

      **Returns**

        .. line-block::

          :ref:`DetectedFaceList<id3_face_detected_face_list_class>`
          The newly created detected face list.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        DetectedFaceList clone()

      **Returns**

        .. line-block::

          :ref:`DetectedFaceList<id3_face_detected_face_list_class>`
          The newly created detected face list.

      **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 DetectedFaceList Clone()

      **Returns**

        .. line-block::

          :ref:`DetectedFaceList<id3_face_detected_face_list_class>`
          The newly created detected face list.

      **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 DetectedFaceList clone() throws FaceException

      **Returns**

        .. line-block::

          :ref:`DetectedFaceList<id3_face_detected_face_list_class>`
          The newly created detected face list.

      **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 clone() throws -> DetectedFaceList

      **Returns**

        .. line-block::

          :ref:`DetectedFaceList<id3_face_detected_face_list_class>`
          The newly created detected face list.

      **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 id3DetectedFaceList_CopyTo (
            ID3_DETECTED_FACE_LIST hDetectedFaceList, 
            ID3_DETECTED_FACE_LIST hDetectedFaceListDst)

      **Parameters**

        .. line-block::

          ``hDetectedFaceList`` :ref:`ID3_DETECTED_FACE_LIST<id3_face_detected_face_list_class>`
          :guilabel:`in` Handle to the DetectedFaceList object.

          ``hDetectedFaceListDst`` :ref:`ID3_DETECTED_FACE_LIST<id3_face_detected_face_list_class>`
          :guilabel:`out` The newly created detected face list.


      **Returns**

        .. line-block::

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


