# getLargestFace method

DetectedFace getLargestFace()

Gets the largest face in the list.

return The largest detected face in the list. throws FaceException An error has occurred during Face Library execution.

## Implementation

    DetectedFace getLargestFace() {
      DetectedFace largestFace = DetectedFace();
      var err = faceSDK.id3DetectedFaceList_GetLargestFace(_pHandle.value, largestFace.handle);
      if (err != FaceError.success.value) {
        largestFace.dispose();
        throw FaceException(err);
      }
      return largestFace;
    }