FIRVisionTextRecognizedBreak.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /**
  4. * @enum VisionTextRecognizedBreakType
  5. * An enum of recognized text break types.
  6. */
  7. typedef NS_ENUM(NSInteger, FIRVisionTextRecognizedBreakType) {
  8. /**
  9. * Unknown break type.
  10. */
  11. FIRVisionTextRecognizedBreakTypeUnknown,
  12. /**
  13. * Line-wrapping break type.
  14. */
  15. FIRVisionTextRecognizedBreakTypeLineWrap,
  16. /**
  17. * Hyphen break type.
  18. */
  19. FIRVisionTextRecognizedBreakTypeHyphen,
  20. /**
  21. * Line break that ends a paragraph.
  22. */
  23. FIRVisionTextRecognizedBreakTypeLineBreak,
  24. /**
  25. * Space break type.
  26. */
  27. FIRVisionTextRecognizedBreakTypeSpace,
  28. /**
  29. * Sure space break type.
  30. */
  31. FIRVisionTextRecognizedBreakTypeSureSpace,
  32. } NS_SWIFT_NAME(VisionTextRecognizedBreakType);
  33. /**
  34. * Detected break from text recognition.
  35. */
  36. NS_SWIFT_NAME(VisionTextRecognizedBreak)
  37. @interface FIRVisionTextRecognizedBreak : NSObject
  38. /**
  39. * The recognized text break type.
  40. */
  41. @property(nonatomic, readonly) FIRVisionTextRecognizedBreakType type;
  42. /**
  43. * Indicates whether the break prepends the text element. If `NO`, the break comes after the text
  44. * element.
  45. */
  46. @property(nonatomic, readonly) BOOL isPrefix;
  47. /**
  48. * Unavailable.
  49. */
  50. - (instancetype)init NS_UNAVAILABLE;
  51. @end
  52. NS_ASSUME_NONNULL_END