MLKitEntityExtraction Framework Reference

  • Globally available enumerations include MLKDateTimeGranularity, MLKPaymentCardNetwork, and MLKParcelTrackingCarrier.

  • MLKDateTimeGranularity specifies the precision of extracted timestamps, like distinguishing between "tomorrow" (day granularity) and "12:51" (minute granularity).

  • MLKPaymentCardNetwork identifies supported payment card networks that the system can detect.

  • MLKParcelTrackingCarrier defines the supported parcel tracking carriers that can be detected.

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

    Objective-C

    enum MLKDateTimeGranularity {}
  • @enum PaymentCardNetwork The supported payment card networks that can be detected.

    Declaration

    Objective-C

    enum MLKPaymentCardNetwork {}
  • @enum ParcelTrackingCarrier The supported parcel tracking carriers that can be detected.

    Declaration

    Objective-C

    enum MLKParcelTrackingCarrier {}