MLKitEntityExtraction Framework Reference

Type Definitions

The following type definitions are available globally.

  • @enum EntityExtractionEntityType The type of an extracted entity.

    Declaration

    Objective-C

    typedef NSString *MLKEntityExtractionEntityType
  • An enumeration of models supported by EntityExtractor.

    Declaration

    Objective-C

    typedef NSString *MLKEntityExtractionModelIdentifier
  • A block that handles an entity extraction result.

    Declaration

    Objective-C

    typedef void (^MLKEntityExtractorCallback)(
        NSArray<MLKEntityAnnotation *> *_Nullable, NSError *_Nullable)

    Parameters

    result

    An array of annotations for the text or nil if there’s an error.

    error

    The error or nil.

  • A block that is invoked when the entity extraction models are downloaded.

    Declaration

    Objective-C

    typedef void (^MLKEntityExtractorDownloadModelIfNeededCallback)(
        NSError *_Nullable)

    Parameters

    error

    The error or nil.