#import <FlutterTextInputPlugin.h>
Definition at line 33 of file FlutterTextInputPlugin.h.
◆ API_AVAILABLE
- (ios(16.0) API_AVAILABLE |
|
|
|
◆ handleMethodCall:result:
Definition at line 2389 of file FlutterTextInputPlugin.mm.
2390 NSString* method = call.
method;
2393 [
self showTextInput];
2395 }
else if ([method isEqualToString:
kHideMethod]) {
2396 [
self hideTextInput];
2399 [
self setTextInputClient:[args[0] intValue] withConfiguration:args[1]];
2403 [
self setPlatformViewTextInputClient];
2406 [
self setTextInputEditingState:args];
2409 [
self clearTextInputClient];
2412 [
self setEditableSizeAndTransform:args];
2415 [
self updateMarkedRect:args];
2418 [
self triggerAutofillSave:[args boolValue]];
2424 [
self setSelectionRects:args];
2427 [
self setSelectionRects:args];
2430 [
self startLiveTextInput];
2433 [
self updateConfig:args];
2436 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2437 [
self handlePointerMove:pointerY];
2440 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2441 [
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 2349 of file FlutterTextInputPlugin.mm.
2349 :(id<FlutterTextInputDelegate>)textInputDelegate {
2350 self = [
super init];
2353 _textInputDelegate = textInputDelegate;
2354 _autofillContext = [[NSMutableDictionary alloc] init];
2356 _scribbleElements = [[NSMutableDictionary alloc] init];
2357 _keyboardViewContainer = [[UIView alloc] init];
2359 [[NSNotificationCenter defaultCenter] addObserver:self
2360 selector:@selector(handleKeyboardWillShow:)
2361 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 3022 of file FlutterTextInputPlugin.mm.
3024 if (@available(iOS 14.0, *)) {
3026 if (parentView != nil) {
3027 UIIndirectScribbleInteraction* scribbleInteraction = [[UIIndirectScribbleInteraction alloc]
3028 initWithDelegate:(id<UIIndirectScribbleInteractionDelegate>)self];
3029 [parentView addInteraction:scribbleInteraction];
References viewResponder.
◆ showEditMenu:
- (BOOL) showEditMenu: |
|
(ios(16.0)) |
API_AVAILABLE |
|
Definition at line 2552 of file FlutterTextInputPlugin.mm.
2553 if (!
self.activeView.isFirstResponder) {
2556 NSDictionary<NSString*, NSNumber*>* encodedTargetRect = args[@"targetRect"];
2557 CGRect globalTargetRect = CGRectMake(
2558 [encodedTargetRect[
@"x"] doubleValue], [encodedTargetRect[
@"y"] doubleValue],
2559 [encodedTargetRect[
@"width"] doubleValue], [encodedTargetRect[
@"height"] doubleValue]);
2560 CGRect localTargetRect = [
self.hostView convertRect:globalTargetRect toView:self.activeView];
2561 [
self.activeView showEditMenuWithTargetRect:localTargetRect];
◆ textInputView
- (UIView< UITextInput > *) textInputView |
|
|
|
The UITextInput
implementation used to control text entry.
This is used by AccessibilityBridge
to forward interactions with iOS' accessibility system.
Definition at line 2385 of file FlutterTextInputPlugin.mm.
◆ __pad0__
◆ indirectScribbleDelegate
◆ scribbleElements
- (NSMutableDictionary<UIScribbleElementIdentifier, NSValue*>*) scribbleElements |
|
readwritenonatomicstrong |
◆ viewController
- (UIIndirectScribbleInteractionDelegate UIViewController*) viewController |
|
readwritenonatomicweak |
The documentation for this class was generated from the following files: