MLKitEntityExtraction Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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
{}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eGlobally available enumerations include \u003ccode\u003eMLKDateTimeGranularity\u003c/code\u003e, \u003ccode\u003eMLKPaymentCardNetwork\u003c/code\u003e, and \u003ccode\u003eMLKParcelTrackingCarrier\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKDateTimeGranularity\u003c/code\u003e specifies the precision of extracted timestamps, like distinguishing between "tomorrow" (day granularity) and "12:51" (minute granularity).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKPaymentCardNetwork\u003c/code\u003e identifies supported payment card networks that the system can detect.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKParcelTrackingCarrier\u003c/code\u003e defines the supported parcel tracking carriers that can be detected.\u003c/p\u003e\n"]]],["Three global enumerations are defined: `MLKDateTimeGranularity`, `MLKPaymentCardNetwork`, and `MLKParcelTrackingCarrier`. `MLKDateTimeGranularity` specifies the precision of a timestamp extracted from text, like `.day` or `.minute`. `MLKPaymentCardNetwork` lists the detectable payment card networks. `MLKParcelTrackingCarrier` enumerates the supported parcel tracking carriers that can be identified. Each enumeration is accessible globally and is defined using an Objective-C declaration.\n"],null,["# MLKitEntityExtraction Framework Reference\n\nEnumerations\n============\n\nThe following enumerations are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKDateTimeGranularity](/ml-kit/reference/ios/mlkitentityextraction/api/reference/Enums/MLKDateTimeGranularity)\n\n `\n ` \n @enum DateTimeGranularity\n The precision of a timestamp that was extracted from text.\n\n For example, \"tomorrow\" has the granularity `.day`, while \"12:51\" has the granularity `.minute`. \n\n #### Declaration\n\n Objective-C \n\n enum MLKDateTimeGranularity {}\n\n- `\n ``\n ``\n `\n\n ### [MLKPaymentCardNetwork](/ml-kit/reference/ios/mlkitentityextraction/api/reference/Enums/MLKPaymentCardNetwork)\n\n `\n ` \n @enum PaymentCardNetwork\n The supported payment card networks that can be detected. \n\n #### Declaration\n\n Objective-C \n\n enum MLKPaymentCardNetwork {}\n\n- `\n ``\n ``\n `\n\n ### [MLKParcelTrackingCarrier](/ml-kit/reference/ios/mlkitentityextraction/api/reference/Enums/MLKParcelTrackingCarrier)\n\n `\n ` \n @enum ParcelTrackingCarrier\n The supported parcel tracking carriers that can be detected. \n\n #### Declaration\n\n Objective-C \n\n enum MLKParcelTrackingCarrier {}"]]