5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTPLUGIN_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTPLUGIN_H_
8 #import <UIKit/UIKit.h>
17 typedef NS_ENUM(NSInteger, FlutterScribbleFocusStatus) {
19 FlutterScribbleFocusStatusUnfocused,
20 FlutterScribbleFocusStatusFocusing,
21 FlutterScribbleFocusStatusFocused,
25 typedef NS_ENUM(NSInteger, FlutterScribbleInteractionStatus) {
27 FlutterScribbleInteractionStatusNone,
28 FlutterScribbleInteractionStatusStarted,
29 FlutterScribbleInteractionStatusEnding,
34 : NSObject <FlutterKeySecondaryResponder, UIIndirectScribbleInteractionDelegate>
38 @property(nonatomic, strong)
45 NS_DESIGNATED_INITIALIZER;
69 @property(nonatomic, readonly) NSUInteger
index;
70 @property(nonatomic, readonly) UITextStorageDirection
affinity;
72 + (instancetype)positionWithIndex:(NSUInteger)index;
73 + (instancetype)positionWithIndex:(NSUInteger)index affinity:(UITextStorageDirection)affinity;
74 - (instancetype)initWithIndex:(NSUInteger)index affinity:(UITextStorageDirection)affinity;
81 @property(nonatomic, readonly) NSRange range;
83 + (instancetype)rangeWithNSRange:(NSRange)range;
93 @property(nonatomic, assign) CGRect rect;
94 @property(nonatomic) NSUInteger position;
95 @property(nonatomic, assign) NSWritingDirection writingDirection;
96 @property(nonatomic) BOOL containsStart;
97 @property(nonatomic) BOOL containsEnd;
98 @property(nonatomic) BOOL isVertical;
100 + (instancetype)selectionRectWithRectAndInfo:(CGRect)rect
101 position:(NSUInteger)position
102 writingDirection:(NSWritingDirection)writingDirection
103 containsStart:(BOOL)containsStart
104 containsEnd:(BOOL)containsEnd
105 isVertical:(BOOL)isVertical;
107 + (instancetype)selectionRectWithRect:(CGRect)rect position:(NSUInteger)position;
109 + (instancetype)selectionRectWithRect:(CGRect)rect
110 position:(NSUInteger)position
111 writingDirection:(NSWritingDirection)writingDirection;
113 - (instancetype)initWithRectAndInfo:(CGRect)rect
114 position:(NSUInteger)position
115 writingDirection:(NSWritingDirection)writingDirection
116 containsStart:(BOOL)containsStart
117 containsEnd:(BOOL)containsEnd
118 isVertical:(BOOL)isVertical;
128 #if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG
134 @property(nonatomic, readonly) NSMutableString* text;
151 @property(nonatomic) UITextSmartQuotesType smartQuotesType
API_AVAILABLE(ios(11.0));
152 @property(nonatomic) UITextSmartDashesType smartDashesType
API_AVAILABLE(ios(11.0));
153 @property(nonatomic, copy) UITextContentType textContentType
API_AVAILABLE(ios(10.0));
177 @property(nonatomic, readonly)
id flutterFirstResponder;
180 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTPLUGIN_H_