MLKitImageLabelingCommon Framework Reference

  • MLKImageLabelingCallback is a global type definition used as a block.

  • It provides the results of image labeling as an array of MLKImageLabel objects or an error if the process fails.

  • The labels parameter contains the array of image labels, while the error parameter indicates any error that occurred during the labeling process.

Type Definitions

The following type definitions are available globally.

  • A block containing an array of label results or nil if there’s an error.

    Declaration

    Objective-C

    typedef void (^MLKImageLabelingCallback)(NSArray<MLKImageLabel *> *_Nullable,
                                             NSError *_Nullable)

    Parameters

    labels

    Array of label results in the image or nil if there was an error.

    error

    The error or nil.