5 #ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTPLUGIN_H_
6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTPLUGIN_H_
8 #import <UIKit/UIKit.h>
17 typedef NS_ENUM(NSInteger, FlutterScribbleFocusStatus) {
18 FlutterScribbleFocusStatusUnfocused,
19 FlutterScribbleFocusStatusFocusing,
20 FlutterScribbleFocusStatusFocused,
23 typedef NS_ENUM(NSInteger, FlutterScribbleInteractionStatus) {
24 FlutterScribbleInteractionStatusNone,
25 FlutterScribbleInteractionStatusStarted,
26 FlutterScribbleInteractionStatusEnding,
30 : NSObject <FlutterKeySecondaryResponder, UIIndirectScribbleInteractionDelegate>
34 @property(nonatomic, strong)
41 NS_DESIGNATED_INITIALIZER;
65 @property(nonatomic, readonly) NSUInteger
index;
66 @property(nonatomic, readonly) UITextStorageDirection
affinity;
68 + (instancetype)positionWithIndex:(NSUInteger)index;
69 + (instancetype)positionWithIndex:(NSUInteger)index affinity:(UITextStorageDirection)affinity;
70 - (instancetype)initWithIndex:(NSUInteger)index affinity:(UITextStorageDirection)affinity;
77 @property(nonatomic, readonly) NSRange range;
79 + (instancetype)rangeWithNSRange:(NSRange)range;
89 @property(nonatomic, assign) CGRect rect;
90 @property(nonatomic) NSUInteger position;
91 @property(nonatomic, assign) NSWritingDirection writingDirection;
92 @property(nonatomic) BOOL containsStart;
93 @property(nonatomic) BOOL containsEnd;
94 @property(nonatomic) BOOL isVertical;
96 + (instancetype)selectionRectWithRectAndInfo:(CGRect)rect
97 position:(NSUInteger)position
98 writingDirection:(NSWritingDirection)writingDirection
99 containsStart:(BOOL)containsStart
100 containsEnd:(BOOL)containsEnd
101 isVertical:(BOOL)isVertical;
103 + (instancetype)selectionRectWithRect:(CGRect)rect position:(NSUInteger)position;
105 + (instancetype)selectionRectWithRect:(CGRect)rect
106 position:(NSUInteger)position
107 writingDirection:(NSWritingDirection)writingDirection;
109 - (instancetype)initWithRectAndInfo:(CGRect)rect
110 position:(NSUInteger)position
111 writingDirection:(NSWritingDirection)writingDirection
112 containsStart:(BOOL)containsStart
113 containsEnd:(BOOL)containsEnd
114 isVertical:(BOOL)isVertical;
124 #if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG
130 @property(nonatomic, readonly) NSMutableString* text;
131 @property(nonatomic, readonly) NSMutableString*
markedText;
148 @property(nonatomic) UITextSmartQuotesType smartQuotesType
API_AVAILABLE(ios(11.0));
149 @property(nonatomic) UITextSmartDashesType smartDashesType
API_AVAILABLE(ios(11.0));
150 @property(nonatomic, copy) UITextContentType textContentType
API_AVAILABLE(ios(10.0));
170 @property(nonatomic, readonly)
id flutterFirstResponder;
173 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTPLUGIN_H_