#import <FlutterTextInputPlugin.h>
Definition at line 33 of file FlutterTextInputPlugin.h.
◆ API_AVAILABLE
- (ios(16.0) API_AVAILABLE |
|
|
|
◆ handleMethodCall:result:
Definition at line 2521 of file FlutterTextInputPlugin.mm.
2522 NSString* method = call.
method;
2525 [
self showTextInput];
2527 }
else if ([method isEqualToString:
kHideMethod]) {
2528 [
self hideTextInput];
2531 [
self setTextInputClient:[args[0] intValue] withConfiguration:args[1]];
2535 [
self setPlatformViewTextInputClient];
2538 [
self setTextInputEditingState:args];
2541 [
self clearTextInputClient];
2544 [
self setEditableSizeAndTransform:args];
2547 [
self updateMarkedRect:args];
2550 [
self triggerAutofillSave:[args boolValue]];
2556 [
self setSelectionRects:args];
2559 [
self setSelectionRects:args];
2562 [
self startLiveTextInput];
2565 [
self updateConfig:args];
2568 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2569 [
self handlePointerMove:pointerY];
2572 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2573 [
self handlePointerUp:pointerY];
References FlutterMethodCall::arguments, FlutterMethodNotImplemented, kClearClientMethod, kDeprecatedSetSelectionRectsMethod, kFinishAutofillContextMethod, kHideMethod, kOnInteractiveKeyboardPointerMoveMethod, kOnInteractiveKeyboardPointerUpMethod, kSetClientMethod, kSetEditableSizeAndTransformMethod, kSetEditingStateMethod, kSetMarkedTextRectMethod, kSetPlatformViewClientMethod, kSetSelectionRectsMethod, kShowMethod, kStartLiveTextInputMethod, kUpdateConfigMethod, and FlutterMethodCall::method.
◆ initWithDelegate:
Initial value:{
NSTimer* _enableFlutterTextInputViewAccessibilityTimer
Definition at line 2481 of file FlutterTextInputPlugin.mm.
2481 :(id<FlutterTextInputDelegate>)textInputDelegate {
2482 self = [
super init];
2485 _textInputDelegate = textInputDelegate;
2486 _autofillContext = [[NSMutableDictionary alloc] init];
2488 _scribbleElements = [[NSMutableDictionary alloc] init];
2489 _keyboardViewContainer = [[UIView alloc] init];
2491 [[NSNotificationCenter defaultCenter] addObserver:self
2492 selector:@selector(handleKeyboardWillShow:)
2493 name:UIKeyboardWillShowNotification
◆ NS_UNAVAILABLE [1/2]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ resetViewResponder
- (void) resetViewResponder |
|
|
|
◆ setUpIndirectScribbleInteraction:
These are used by the UIIndirectScribbleInteractionDelegate methods to handle focusing on the correct element.
Definition at line 3157 of file FlutterTextInputPlugin.mm.
3159 if (@available(iOS 14.0, *)) {
3161 if (parentView != nil) {
3162 UIIndirectScribbleInteraction* scribbleInteraction = [[UIIndirectScribbleInteraction alloc]
3163 initWithDelegate:(id<UIIndirectScribbleInteractionDelegate>)self];
3164 [parentView addInteraction:scribbleInteraction];
References viewResponder.
◆ showEditMenu:
- (BOOL) showEditMenu: |
|
(ios(16.0)) |
API_AVAILABLE |
|
Definition at line 2684 of file FlutterTextInputPlugin.mm.
2685 if (!
self.activeView.isFirstResponder) {
2688 NSDictionary<NSString*, NSNumber*>* encodedTargetRect = args[@"targetRect"];
2689 CGRect globalTargetRect = CGRectMake(
2690 [encodedTargetRect[
@"x"] doubleValue], [encodedTargetRect[
@"y"] doubleValue],
2691 [encodedTargetRect[
@"width"] doubleValue], [encodedTargetRect[
@"height"] doubleValue]);
2692 CGRect localTargetRect = [
self.hostView convertRect:globalTargetRect toView:self.activeView];
2693 [
self.activeView showEditMenuWithTargetRect:localTargetRect items:args[@"items"]];
◆ textInputView
- (UIView< UITextInput > *) textInputView |
|
|
|
◆ __pad0__
◆ indirectScribbleDelegate
◆ scribbleElements
- (NSMutableDictionary<UIScribbleElementIdentifier, NSValue*>*) scribbleElements |
|
readwritenonatomicstrong |
◆ viewController
- (UIIndirectScribbleInteractionDelegate UIViewController*) viewController |
|
readwritenonatomicweak |
The documentation for this class was generated from the following files: