MLKitEntityExtraction Framework Reference

  • MLKMoneyEntity is an object that represents money extracted from text.

  • It provides access to the currency, integer part, and fractional part of the detected money value.

  • The unnormalizedCurrency property contains the original currency text from the input.

  • The integerPart and fractionalPart properties provide the numerical components of the money value.

MLKMoneyEntity


@interface MLKMoneyEntity : NSObject

A money entity extracted from text.

  • The currency part of the detected annotation. No formatting is applied so this will return a subset of the initial string.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull unnormalizedCurrency;
  • The integer part of the detected annotation. This is the integer written to the left of the decimal separator.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger integerPart;
  • The fractional part of the detected annotation. This is the integer written to the right of the decimal separator.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger fractionalPart;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;