# MLKitObjectDetectionCommon Framework Reference

# Type Definitions

The following type definitions are available globally.
- `


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


  ` @enum ObjectDetectorMode
  Object detector modes.

  #### Declaration

  Objective-C

      typedef NSInteger MLKObjectDetectorMode

- `


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


  ` A block containing an array of objects detected or `nil` if there was an error.

  #### Declaration

  Objective-C

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

  #### Parameters

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