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;
70 - (BOOL)showEditMenu:(NSDictionary*)args API_AVAILABLE(ios(16.0));
78 @property(nonatomic, readonly) NSUInteger
index;
79 @property(nonatomic, readonly) UITextStorageDirection
affinity;
81 + (instancetype)positionWithIndex:(NSUInteger)index;
82 + (instancetype)positionWithIndex:(NSUInteger)index affinity:(UITextStorageDirection)affinity;
83 - (instancetype)initWithIndex:(NSUInteger)index affinity:(UITextStorageDirection)affinity;
90 @property(nonatomic, readonly) NSRange range;
92 + (instancetype)rangeWithNSRange:(NSRange)range;
102 @property(nonatomic, assign) CGRect rect;
103 @property(nonatomic) NSUInteger position;
104 @property(nonatomic, assign) NSWritingDirection writingDirection;
105 @property(nonatomic) BOOL containsStart;
106 @property(nonatomic) BOOL containsEnd;
107 @property(nonatomic) BOOL isVertical;
109 + (instancetype)selectionRectWithRectAndInfo:(CGRect)rect
110 position:(NSUInteger)position
111 writingDirection:(NSWritingDirection)writingDirection
112 containsStart:(BOOL)containsStart
113 containsEnd:(BOOL)containsEnd
114 isVertical:(BOOL)isVertical;
116 + (instancetype)selectionRectWithRect:(CGRect)rect position:(NSUInteger)position;
118 + (instancetype)selectionRectWithRect:(CGRect)rect
119 position:(NSUInteger)position
120 writingDirection:(NSWritingDirection)writingDirection;
122 - (instancetype)initWithRectAndInfo:(CGRect)rect
123 position:(NSUInteger)position
124 writingDirection:(NSWritingDirection)writingDirection
125 containsStart:(BOOL)containsStart
126 containsEnd:(BOOL)containsEnd
127 isVertical:(BOOL)isVertical;
137 #if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG
141 : UIView <UITextInput, UIScribbleInteractionDelegate, UIEditMenuInteractionDelegate>
144 @property(nonatomic, readonly) NSMutableString* text;
161 @property(nonatomic) UITextSmartQuotesType smartQuotesType
API_AVAILABLE(ios(11.0));
162 @property(nonatomic) UITextSmartDashesType smartDashesType
API_AVAILABLE(ios(11.0));
163 @property(nonatomic, copy) UITextContentType textContentType
API_AVAILABLE(ios(10.0));
172 @property(nonatomic, strong) UIEditMenuInteraction* editMenuInteraction
API_AVAILABLE(ios(16.0));
189 @property(nonatomic, readonly)
id flutterFirstResponder;
void(^ FlutterResult)(id _Nullable result)
#define FLUTTER_DARWIN_EXPORT
BOOL enablesReturnKeyAutomatically
UIAccessibilityElement * backingTextInputAccessibilityObject
NSDictionary * markedTextStyle
NSArray< FlutterTextSelectionRect * > * selectionRects
NSMutableArray * pendingDeltas
CGRect localRectFromFrameworkTransform
void resetScribbleInteractionStatusIfEnding
typedef NS_ENUM(NSInteger, FlutterScribbleFocusStatus)
UIKeyboardType keyboardType
UITextRange * markedTextRange
id< UITextInputDelegate > inputDelegate
instancetype init NS_UNAVAILABLE
UITextAutocorrectionType autocorrectionType
instancetype initWithFrame
FlutterScribbleFocusStatus scribbleFocusStatus
UITextSpellCheckingType spellCheckingType
API_AVAILABLE(ios(13.0)) @interface FlutterTextPlaceholder UITextRange * selectedTextRange
instancetype initWithOwner
id< FlutterViewResponder > viewResponder
UITextSmartQuotesType smartQuotesType API_AVAILABLE(ios(11.0))
instancetype initWithCoder
UITextAutocapitalizationType autocapitalizationType
UIReturnKeyType returnKeyType
CGRect caretRectForPosition
UIKeyboardAppearance keyboardAppearance
FlutterViewController * viewController
UIView< UITextInput > * textInputView()
NSMutableDictionary< UIScribbleElementIdentifier, NSValue * > * scribbleElements
void resetViewResponder()
id< FlutterIndirectScribbleDelegate > indirectScribbleDelegate
UITextStorageDirection affinity