AI-generated Key Takeaways
-
MLKEntityrepresents an entity extracted from a text substring, providing access to various entity types. -
It includes properties for different specific entity types like date/time, flight number, IBAN, ISBN, money, payment card, and tracking number.
-
Each entity property is readonly and can be
nilif the specific entity type was not found in the text. -
Developers can access the
entityTypeproperty to determine the type of the extracted entity. -
The
initmethod is unavailable; presumably,MLKEntityinstances are created through other means within the ML Kit framework.
MLKEntity
@interface MLKEntity : NSObjectAn entity extracted from a substring of text.
-
The type of the extracted entity.
Declaration
Objective-C
@property (nonatomic, readonly) MLKEntityExtractionEntityType _Nonnull entityType; -
The time reference entity containing a specific time or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKDateTimeEntity *dateTimeEntity; -
The flight number entity in IATA format or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKFlightNumberEntity *flightNumberEntity; -
The International Bank Account Number (IBAN) entity or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKIBANEntity *IBANEntity; -
The International Standard Book Number (ISBN) entity or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKISBNEntity *ISBNEntity; -
The entity representing an amount of money or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKMoneyEntity *moneyEntity; -
The payment card entity or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKPaymentCardEntity *paymentCardEntity; -
The tracking number entity for a shipment or
nilif not extracted from the text.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MLKTrackingNumberEntity *trackingNumberEntity; -
Unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;