MLKitEntityExtraction Framework Reference

  • This documentation outlines the available global enumerations, including DateTimeGranularity, PaymentCardNetwork, and ParcelTrackingCarrier, for use in text extraction tasks.

  • DateTimeGranularity indicates the precision of extracted timestamps, like "day" or "minute".

  • PaymentCardNetwork includes supported payment card types that can be detected.

  • ParcelTrackingCarrier lists recognized parcel delivery services.

Enumerations

The following enumerations are available globally.

  • @enum DateTimeGranularity The precision of a timestamp that was extracted from text.

    For example, “tomorrow” has the granularity .day, while “12:51” has the granularity .minute.

    Declaration

    Swift

    enum DateTimeGranularity : Int
  • @enum PaymentCardNetwork The supported payment card networks that can be detected.

    Declaration

    Swift

    enum PaymentCardNetwork : Int
  • @enum ParcelTrackingCarrier The supported parcel tracking carriers that can be detected.

    Declaration

    Swift

    enum ParcelTrackingCarrier : Int