MLKitEntityExtraction Framework Reference

  • MLKDateTimeEntity represents a date and time extracted from text.

  • It provides the parsed dateTime as an NSDate object.

  • It specifies the dateTimeGranularity indicating the precision of the extracted date and time.

  • The default initializer is unavailable; instances should be created through other means provided by the API.

MLKDateTimeEntity


@interface MLKDateTimeEntity : NSObject

A date and time entity extracted from text.

  • The parsed date and time.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSDate *_Nonnull dateTime;
  • The granularity of the date and time.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKDateTimeGranularity dateTimeGranularity;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;