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 SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_
6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_
7 
8 #import <Foundation/Foundation.h>
9 
12 
13 typedef NS_ENUM(NSInteger, FlutterTextInputAction) {
14  FlutterTextInputActionUnspecified,
15  FlutterTextInputActionDone,
16  FlutterTextInputActionGo,
17  FlutterTextInputActionSend,
18  FlutterTextInputActionSearch,
19  FlutterTextInputActionNext,
20  FlutterTextInputActionContinue,
21  FlutterTextInputActionJoin,
22  FlutterTextInputActionRoute,
23  FlutterTextInputActionEmergencyCall,
24  FlutterTextInputActionNewline,
25 };
26 
27 typedef NS_ENUM(NSInteger, FlutterFloatingCursorDragState) {
28  FlutterFloatingCursorDragStateStart,
29  FlutterFloatingCursorDragStateUpdate,
30  FlutterFloatingCursorDragStateEnd,
31 };
32 
33 @protocol FlutterTextInputDelegate <NSObject>
34 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
35  updateEditingClient:(int)client
36  withState:(NSDictionary*)state;
37 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
38  updateEditingClient:(int)client
39  withState:(NSDictionary*)state
40  withTag:(NSString*)tag;
41 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
42  updateEditingClient:(int)client
43  withDelta:(NSDictionary*)state;
44 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
45  performAction:(FlutterTextInputAction)action
46  withClient:(int)client;
47 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
48  updateFloatingCursor:(FlutterFloatingCursorDragState)state
49  withClient:(int)client
50  withPosition:(NSDictionary*)point;
51 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
52  showAutocorrectionPromptRectForStart:(NSUInteger)start
53  end:(NSUInteger)end
54  withClient:(int)client;
55 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView showToolbar:(int)client;
56 - (void)flutterTextInputViewScribbleInteractionBegan:(FlutterTextInputView*)textInputView;
57 - (void)flutterTextInputViewScribbleInteractionFinished:(FlutterTextInputView*)textInputView;
58 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
59  insertTextPlaceholderWithSize:(CGSize)size
60  withClient:(int)client;
61 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView removeTextPlaceholder:(int)client;
62 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
63  didResignFirstResponderWithTextInputClient:(int)client;
64 @end
65 
66 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_
FlutterTextInputDelegate-p
Definition: FlutterTextInputDelegate.h:33
NS_ENUM
typedef NS_ENUM(NSInteger, FlutterTextInputAction)
Definition: FlutterTextInputDelegate.h:13
FlutterTextInputView
Definition: FlutterTextInputPlugin.mm:787
FlutterTextInputPlugin
Definition: FlutterTextInputPlugin.h:29