clone method

FaceCandidate clone()

Creates a copy of the FaceCandidate object.

return The newly created FaceCandidate object. throws FaceException An error has occurred during Face Library execution.

Implementation

FaceCandidate clone() {
  FaceCandidate clone = FaceCandidate();
  var err = faceSDK.id3FaceCandidate_CopyTo(_pHandle.value, clone.handle);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
  return clone;
}