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
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
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\u003eThis documentation outlines the available global enumerations, including DateTimeGranularity, PaymentCardNetwork, and ParcelTrackingCarrier, for use in text extraction tasks.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDateTimeGranularity\u003c/code\u003e indicates the precision of extracted timestamps, like "day" or "minute".\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePaymentCardNetwork\u003c/code\u003e includes supported payment card types that can be detected.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eParcelTrackingCarrier\u003c/code\u003e lists recognized parcel delivery services.\u003c/p\u003e\n"]]],["The core content describes three globally available enumerations: `DateTimeGranularity`, `PaymentCardNetwork`, and `ParcelTrackingCarrier`. `DateTimeGranularity` defines the precision of extracted timestamps, such as `.day` or `.minute`. `PaymentCardNetwork` lists the detectable payment card networks. `ParcelTrackingCarrier` specifies the supported parcel tracking carriers. Each enumeration is defined as an integer type in Swift. These enums help classify extracted information during text processing.\n"],null,["# MLKitEntityExtraction Framework Reference\n\nEnumerations\n============\n\nThe following enumerations are available globally.\n- `\n ``\n ``\n `\n\n ### [DateTimeGranularity](/ml-kit/reference/swift/mlkitentityextraction/api/reference/Enums/DateTimeGranularity)\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 Swift \n\n enum DateTimeGranularity : Int\n\n- `\n ``\n ``\n `\n\n ### [PaymentCardNetwork](/ml-kit/reference/swift/mlkitentityextraction/api/reference/Enums/PaymentCardNetwork)\n\n `\n ` \n @enum PaymentCardNetwork\n The supported payment card networks that can be detected. \n\n #### Declaration\n\n Swift \n\n enum PaymentCardNetwork : Int\n\n- `\n ``\n ``\n `\n\n ### [ParcelTrackingCarrier](/ml-kit/reference/swift/mlkitentityextraction/api/reference/Enums/ParcelTrackingCarrier)\n\n `\n ` \n @enum ParcelTrackingCarrier\n The supported parcel tracking carriers that can be detected. \n\n #### Declaration\n\n Swift \n\n enum ParcelTrackingCarrier : Int"]]