Instance Methods | |
(void) | - handleMethodCall:result: |
(void) | - setEditingState: |
(void) | - updateEditState |
(void) | - updateEditStateWithDelta: |
(void) | - updateTextAndSelection |
(NSString *) | - textAffinityString |
Protected Attributes | |
NSTextInputContext * | _textInputContext |
FlutterMethodChannel * | _channel |
__weak FlutterViewController * | _currentViewController |
__weak id< FlutterTextInputPluginDelegate > | _delegate |
BOOL | _shown |
uint64_t | _previouslyPressedFlags |
FlutterTextAffinity | _textAffinity |
NSNumber * | _clientID |
NSString * | _inputType |
NSString * | _inputAction |
BOOL | _eventProducedOutput |
BOOL | _enableDeltaModel |
NSMutableArray * | _pendingSelectors |
std::unique_ptr< flutter::TextInputModel > | _activeModel |
CATransform3D | _editableTransform |
CGRect | _caretRect |
Properties | |
NSString * | customRunLoopMode |
NSTextInputContext * | textInputContext |
Private properties of FlutterTextInputPlugin.
Definition at line 207 of file FlutterTextInputPlugin.mm.
- (void) handleMethodCall: | (FlutterMethodCall *) | call | |
result: | (FlutterResult) | result | |
Handles a Flutter system message on the text input channel.
- (void) setEditingState: | (NSDictionary *) | state |
Updates the text input model with state received from the framework via the TextInput.setEditingState message.
- (NSString*) textAffinityString |
Return the string representation of the current textAffinity as it should be sent over the FlutterMethodChannel.
- (void) updateEditState |
Informs the Flutter framework of changes to the text input model's state by sending the entire new state.
- (void) updateEditStateWithDelta: | (const flutter::TextEditingDelta) | delta |
Informs the Flutter framework of changes to the text input model's state by sending only the difference.
- (void) updateTextAndSelection |
Updates the stringValue and selectedRange that stored in the NSTextView interface that this plugin inherits from.
If there is a FlutterTextField uses this plugin as its field editor, this method will update the stringValue and selectedRange through the API of the FlutterTextField.
|
protected |
The currently active text input model.
Definition at line 287 of file FlutterTextInputPlugin.mm.
|
protected |
Current position of caret in local (editable) coordinates.
Definition at line 297 of file FlutterTextInputPlugin.mm.
|
protected |
The channel used to communicate with Flutter.
Definition at line 216 of file FlutterTextInputPlugin.mm.
|
protected |
ID of the text input client.
Definition at line 248 of file FlutterTextInputPlugin.mm.
|
protected |
The FlutterViewController to manage input for.
Definition at line 221 of file FlutterTextInputPlugin.mm.
|
protected |
Used to obtain view controller on client creation
Definition at line 226 of file FlutterTextInputPlugin.mm.
|
protected |
Transform for current the editable. Used to determine position of accent selection menu.
Definition at line 292 of file FlutterTextInputPlugin.mm.
|
protected |
Whether to enable the sending of text input updates from the engine to the framework as TextEditingDeltas rather than as one TextEditingValue. For more information on the delta model, see: https://master-api.flutter.dev/flutter/services/TextInputConfiguration/enableDeltaModel.html
Definition at line 275 of file FlutterTextInputPlugin.mm.
|
protected |
Set to true if the last event fed to the input context produced a text editing command or text output. It is reset to false at the beginning of every key event, and is only used while processing this event.
Definition at line 267 of file FlutterTextInputPlugin.mm.
|
protected |
An action requested by the user on the input client. See available options: https://api.flutter.dev/flutter/services/TextInputAction-class.html
Definition at line 260 of file FlutterTextInputPlugin.mm.
|
protected |
Keyboard type of the client. See available options: https://api.flutter.dev/flutter/services/TextInputType-class.html
Definition at line 254 of file FlutterTextInputPlugin.mm.
|
protected |
Used to gather multiple selectors performed in one run loop turn. These will be all sent in one platform channel call so that the framework can process them in single microtask.
Definition at line 282 of file FlutterTextInputPlugin.mm.
|
protected |
The current state of the keyboard and pressed keys.
Definition at line 238 of file FlutterTextInputPlugin.mm.
|
protected |
Whether the text input is shown in the view.
Defaults to TRUE on startup.
Definition at line 233 of file FlutterTextInputPlugin.mm.
|
protected |
The affinity for the current cursor position.
Definition at line 243 of file FlutterTextInputPlugin.mm.
|
protected |
A text input context, representing a connection to the Cocoa text input system.
Definition at line 211 of file FlutterTextInputPlugin.mm.
|
readwritenonatomicassign |
Allow overriding run loop mode for test.
Definition at line 341 of file FlutterTextInputPlugin.mm.
|
readwritenonatomicassign |
Definition at line 342 of file FlutterTextInputPlugin.mm.