#import <FlutterTextInputPlugin.h>
Definition at line 33 of file FlutterTextInputPlugin.h.
◆ API_AVAILABLE
- (ios(16.0) API_AVAILABLE |
|
|
|
◆ handleMethodCall:result:
Definition at line 2398 of file FlutterTextInputPlugin.mm.
2399 NSString* method = call.
method;
2402 [
self showTextInput];
2404 }
else if ([method isEqualToString:
kHideMethod]) {
2405 [
self hideTextInput];
2408 [
self setTextInputClient:[args[0] intValue] withConfiguration:args[1]];
2412 [
self setPlatformViewTextInputClient];
2415 [
self setTextInputEditingState:args];
2418 [
self clearTextInputClient];
2421 [
self setEditableSizeAndTransform:args];
2424 [
self updateMarkedRect:args];
2427 [
self triggerAutofillSave:[args boolValue]];
2433 [
self setSelectionRects:args];
2436 [
self setSelectionRects:args];
2439 [
self startLiveTextInput];
2442 [
self updateConfig:args];
2445 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2446 [
self handlePointerMove:pointerY];
2449 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2450 [
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 2358 of file FlutterTextInputPlugin.mm.
2358 :(id<FlutterTextInputDelegate>)textInputDelegate {
2359 self = [
super init];
2362 _textInputDelegate = textInputDelegate;
2363 _autofillContext = [[NSMutableDictionary alloc] init];
2365 _scribbleElements = [[NSMutableDictionary alloc] init];
2366 _keyboardViewContainer = [[UIView alloc] init];
2368 [[NSNotificationCenter defaultCenter] addObserver:self
2369 selector:@selector(handleKeyboardWillShow:)
2370 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 3031 of file FlutterTextInputPlugin.mm.
3033 if (@available(iOS 14.0, *)) {
3035 if (parentView != nil) {
3036 UIIndirectScribbleInteraction* scribbleInteraction = [[UIIndirectScribbleInteraction alloc]
3037 initWithDelegate:(id<UIIndirectScribbleInteractionDelegate>)self];
3038 [parentView addInteraction:scribbleInteraction];
References viewResponder.
◆ showEditMenu:
- (BOOL) showEditMenu: |
|
(ios(16.0)) |
API_AVAILABLE |
|
Definition at line 2561 of file FlutterTextInputPlugin.mm.
2562 if (!
self.activeView.isFirstResponder) {
2565 NSDictionary<NSString*, NSNumber*>* encodedTargetRect = args[@"targetRect"];
2566 CGRect globalTargetRect = CGRectMake(
2567 [encodedTargetRect[
@"x"] doubleValue], [encodedTargetRect[
@"y"] doubleValue],
2568 [encodedTargetRect[
@"width"] doubleValue], [encodedTargetRect[
@"height"] doubleValue]);
2569 CGRect localTargetRect = [
self.hostView convertRect:globalTargetRect toView:self.activeView];
2570 [
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 2394 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: