Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterTextInputPlugin(TestMethods) Category Reference

#include <FlutterTextInputPlugin.h>

Instance Methods

(void) - handleMethodCall:result:
 
(NSRect) - firstRectForCharacterRange:actualRange:
 
(NSDictionary *) - editingState
 

Properties

NSTextInputContext * textInputContext
 
NSString * customRunLoopMode
 

Detailed Description

Definition at line 89 of file FlutterTextInputPlugin.h.

Method Documentation

◆ editingState

- (NSDictionary *) editingState

◆ firstRectForCharacterRange:actualRange:

- (NSRect) firstRectForCharacterRange: (NSRange)  range
actualRange: (NSRangePointer)  actualRange 

◆ handleMethodCall:result:

- (void) handleMethodCall: (FlutterMethodCall *)  call
result: (FlutterResult result 

Extends class FlutterTextInputPlugin.

Definition at line 39 of file FlutterTextInputPlugin.mm.

2595 :(FlutterMethodCall*)call result:(FlutterResult)result {
2596 NSString* method = call.method;
2597 id args = call.arguments;
2598 if ([method isEqualToString:kShowMethod]) {
2599 [self showTextInput];
2600 result(nil);
2601 } else if ([method isEqualToString:kHideMethod]) {
2602 [self hideTextInput];
2603 result(nil);
2604 } else if ([method isEqualToString:kSetClientMethod]) {
2605 [self setTextInputClient:[args[0] intValue] withConfiguration:args[1]];
2606 result(nil);
2607 } else if ([method isEqualToString:kSetPlatformViewClientMethod]) {
2608 // This method call has a `platformViewId` argument, but we do not need it for iOS for now.
2609 [self setPlatformViewTextInputClient];
2610 result(nil);
2611 } else if ([method isEqualToString:kSetEditingStateMethod]) {
2612 [self setTextInputEditingState:args];
2613 result(nil);
2614 } else if ([method isEqualToString:kClearClientMethod]) {
2615 [self clearTextInputClient];
2616 result(nil);
2617 } else if ([method isEqualToString:kSetEditableSizeAndTransformMethod]) {
2618 [self setEditableSizeAndTransform:args];
2619 result(nil);
2620 } else if ([method isEqualToString:kSetMarkedTextRectMethod]) {
2621 [self updateMarkedRect:args];
2622 result(nil);
2623 } else if ([method isEqualToString:kFinishAutofillContextMethod]) {
2624 [self triggerAutofillSave:[args boolValue]];
2625 result(nil);
2626 // TODO(justinmc): Remove the TextInput method constant when the framework has
2627 // finished transitioning to using the Scribble channel.
2628 // https://github.com/flutter/flutter/pull/104128
2629 } else if ([method isEqualToString:kDeprecatedSetSelectionRectsMethod]) {
2630 [self setSelectionRects:args];
2631 result(nil);
2632 } else if ([method isEqualToString:kSetSelectionRectsMethod]) {
2633 [self setSelectionRects:args];
2634 result(nil);
2635 } else if ([method isEqualToString:kStartLiveTextInputMethod]) {
2636 [self startLiveTextInput];
2637 result(nil);
2638 } else if ([method isEqualToString:kUpdateConfigMethod]) {
2639 [self updateConfig:args];
2640 result(nil);
2641 } else if ([method isEqualToString:kOnInteractiveKeyboardPointerMoveMethod]) {
2642 CGFloat pointerY = (CGFloat)[args[@"pointerY"] doubleValue];
2643 [self handlePointerMove:pointerY];
2644 result(nil);
2645 } else if ([method isEqualToString:kOnInteractiveKeyboardPointerUpMethod]) {
2646 CGFloat pointerY = (CGFloat)[args[@"pointerY"] doubleValue];
2647 [self handlePointerUp:pointerY];
2648 result(nil);
2649 } else {
2651 }
2652}
void(^ FlutterResult)(id _Nullable result)
FLUTTER_DARWIN_EXPORT NSObject const * FlutterMethodNotImplemented
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static NSString *const kSetMarkedTextRectMethod
static NSString *const kFinishAutofillContextMethod
static NSString *const kShowMethod
static NSString *const kUpdateConfigMethod
static NSString *const kSetSelectionRectsMethod
static NSString *const kSetPlatformViewClientMethod
static NSString *const kSetEditingStateMethod
static NSString *const kOnInteractiveKeyboardPointerUpMethod
static NSString *const kClearClientMethod
static NSString *const kSetClientMethod
static NSString *const kStartLiveTextInputMethod
static NSString *const kDeprecatedSetSelectionRectsMethod
static NSString *const kHideMethod
static NSString *const kSetEditableSizeAndTransformMethod
static NSString *const kOnInteractiveKeyboardPointerMoveMethod

Referenced by flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::testing::TEST().

Property Documentation

◆ customRunLoopMode

- (NSString*) customRunLoopMode
readwritenonatomicassign

Definition at line 94 of file FlutterTextInputPlugin.h.

◆ textInputContext

- (NSTextInputContext*) textInputContext
readwritenonatomicassign

Definition at line 93 of file FlutterTextInputPlugin.h.


The documentation for this category was generated from the following file: