MLKitEntityExtraction Framework Reference

  • MLKFlightNumberEntity is an Objective-C class representing a flight number extracted from text.

  • It includes properties for the airline code (airlineCode) and the flight number (flightNumber).

  • The airlineCode follows the IATA standard and can be two or three letters.

  • The flightNumber is represented as a string and can contain 1 to 4 digits.

  • Direct initialization using init is unavailable.

MLKFlightNumberEntity


@interface MLKFlightNumberEntity : NSObject

A flight number entity extracted from text.

  • The IATA airline designator (two or three letters).

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull airlineCode;
  • The flight number (1 to 4 digit number).

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull flightNumber;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;