| Flutter iOS Embedder |

FlutterTextInputDelegate.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_
7
8 #import <Foundation/Foundation.h>
9
10 @class FlutterTextInputPlugin;
11 @class FlutterTextInputView;
12
13 typedef NS_ENUM(NSInteger, FlutterTextInputAction) {
14 // NOLINTBEGIN(readability-identifier-naming)
15 FlutterTextInputActionUnspecified,
16 FlutterTextInputActionDone,
17 FlutterTextInputActionGo,
18 FlutterTextInputActionSend,
19 FlutterTextInputActionSearch,
20 FlutterTextInputActionNext,
21 FlutterTextInputActionContinue,
22 FlutterTextInputActionJoin,
23 FlutterTextInputActionRoute,
24 FlutterTextInputActionEmergencyCall,
25 FlutterTextInputActionNewline,
26 // NOLINTEND(readability-identifier-naming)
27 };
28
29 typedef NS_ENUM(NSInteger, FlutterFloatingCursorDragState) {
30 // NOLINTBEGIN(readability-identifier-naming)
31 FlutterFloatingCursorDragStateStart,
32 FlutterFloatingCursorDragStateUpdate,
33 FlutterFloatingCursorDragStateEnd,
34 // NOLINTEND(readability-identifier-naming)
35 };
36
37 @protocol FlutterTextInputDelegate <NSObject>
38 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
39 updateEditingClient:(int)client
40 withState:(NSDictionary*)state;
41 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
42 updateEditingClient:(int)client
43 withState:(NSDictionary*)state
44 withTag:(NSString*)tag;
45 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
46 updateEditingClient:(int)client
47 withDelta:(NSDictionary*)state;
48 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
49 performAction:(FlutterTextInputAction)action
50 withClient:(int)client;
51 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
52 updateFloatingCursor:(FlutterFloatingCursorDragState)state
53 withClient:(int)client
54 withPosition:(NSDictionary*)point;
55 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
56 showAutocorrectionPromptRectForStart:(NSUInteger)start
57 end:(NSUInteger)end
58 withClient:(int)client;
59 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView showToolbar:(int)client;
60 - (void)flutterTextInputViewScribbleInteractionBegan:(FlutterTextInputView*)textInputView;
61 - (void)flutterTextInputViewScribbleInteractionFinished:(FlutterTextInputView*)textInputView;
62 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
63 insertTextPlaceholderWithSize:(CGSize)size
64 withClient:(int)client;
65 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView removeTextPlaceholder:(int)client;
66 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
67 didResignFirstResponderWithTextInputClient:(int)client;
68 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
69 willDismissEditMenuWithTextInputClient:(int)client;
70 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
71 shareSelectedText:(NSString*)selectedText;
72 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
73 searchWebWithSelectedText:(NSString*)selectedText;
74 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
75 lookUpSelectedText:(NSString*)selectedText;
76 @end
77
78 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_
NS_ENUM
typedef NS_ENUM(NSInteger, FlutterTextInputAction)
Definition: FlutterTextInputDelegate.h:13
FlutterTextInputView
Definition: FlutterTextInputPlugin.mm:811
FlutterTextInputPlugin
Definition: FlutterTextInputPlugin.h:34
FlutterTextInputDelegate-p
Definition: FlutterTextInputDelegate.h:37