# MLKitFaceDetection Framework Reference

# Type Definitions

The following type definitions are available globally.
- `


  ### [MLKFaceContourType](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceContour.h@T@MLKFaceContourType)


  ` The facial contours.

  #### Declaration

  Objective-C

      typedef NSString *MLKFaceContourType

- `


  ### [MLKFaceDetectionCallback](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceDetector.h@T@MLKFaceDetectionCallback)


  ` A block containing an array of faces or `nil` if there's an error.

  #### Declaration

  Objective-C

      typedef void (^MLKFaceDetectionCallback)(NSArray<https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Classes/MLKFace *> *_Nullable,
                                               NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` faces ` | Array of faces detected in the image or `nil` if there was an error. |
  | ` error ` | The error or `nil`. |

- `


  ### [MLKFaceDetectorClassificationMode](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceDetectorOptions.h@T@MLKFaceDetectorClassificationMode)


  ` @enum FaceDetectorClassificationMode
  Classification mode for face detection.

  #### Declaration

  Objective-C

      typedef NSInteger MLKFaceDetectorClassificationMode

- `


  ### [MLKFaceDetectorPerformanceMode](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceDetectorOptions.h@T@MLKFaceDetectorPerformanceMode)


  ` @enum FaceDetectorPerformanceMode
  Performance preference for accuracy or speed of face detection.

  #### Declaration

  Objective-C

      typedef NSInteger MLKFaceDetectorPerformanceMode

- `


  ### [MLKFaceDetectorLandmarkMode](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceDetectorOptions.h@T@MLKFaceDetectorLandmarkMode)


  ` @enum FaceDetectorLandmarkMode
  Landmark detection mode for face detection.

  #### Declaration

  Objective-C

      typedef NSInteger MLKFaceDetectorLandmarkMode

- `


  ### [MLKFaceDetectorContourMode](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceDetectorOptions.h@T@MLKFaceDetectorContourMode)


  ` @enum FaceDetectorContourMode
  Contour detection mode for face detection.

  #### Declaration

  Objective-C

      typedef NSInteger MLKFaceDetectorContourMode

- `


  ### [MLKFaceLandmarkType](https://developers.google.com/ml-kit/reference/ios/mlkitfacedetection/api/reference/Type-Definitions#/c:MLKFaceLandmark.h@T@MLKFaceLandmarkType)


  ` The facial landmarks.

  #### Declaration

  Objective-C

      typedef NSString *MLKFaceLandmarkType