#import <FlutterTextInputPlugin.h>
Definition at line 33 of file FlutterTextInputPlugin.h.
◆ API_AVAILABLE
- (ios(16.0) API_AVAILABLE |
|
|
|
◆ handleMethodCall:result:
Definition at line 2391 of file FlutterTextInputPlugin.mm.
2392 NSString* method = call.
method;
2395 [
self showTextInput];
2397 }
else if ([method isEqualToString:
kHideMethod]) {
2398 [
self hideTextInput];
2401 [
self setTextInputClient:[args[0] intValue] withConfiguration:args[1]];
2405 [
self setPlatformViewTextInputClient];
2408 [
self setTextInputEditingState:args];
2411 [
self clearTextInputClient];
2414 [
self setEditableSizeAndTransform:args];
2417 [
self updateMarkedRect:args];
2420 [
self triggerAutofillSave:[args boolValue]];
2426 [
self setSelectionRects:args];
2429 [
self setSelectionRects:args];
2432 [
self startLiveTextInput];
2435 [
self updateConfig:args];
2438 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2439 [
self handlePointerMove:pointerY];
2442 CGFloat pointerY = (CGFloat)[args[
@"pointerY"] doubleValue];
2443 [
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 2351 of file FlutterTextInputPlugin.mm.
2351 :(id<FlutterTextInputDelegate>)textInputDelegate {
2352 self = [
super init];
2355 _textInputDelegate = textInputDelegate;
2356 _autofillContext = [[NSMutableDictionary alloc] init];
2358 _scribbleElements = [[NSMutableDictionary alloc] init];
2359 _keyboardViewContainer = [[UIView alloc] init];
2361 [[NSNotificationCenter defaultCenter] addObserver:self
2362 selector:@selector(handleKeyboardWillShow:)
2363 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 3024 of file FlutterTextInputPlugin.mm.
3026 if (@available(iOS 14.0, *)) {
3028 if (parentView != nil) {
3029 UIIndirectScribbleInteraction* scribbleInteraction = [[UIIndirectScribbleInteraction alloc]
3030 initWithDelegate:(id<UIIndirectScribbleInteractionDelegate>)self];
3031 [parentView addInteraction:scribbleInteraction];
References viewResponder.
◆ showEditMenu:
- (BOOL) showEditMenu: |
|
(ios(16.0)) |
API_AVAILABLE |
|
Definition at line 2554 of file FlutterTextInputPlugin.mm.
2555 if (!
self.activeView.isFirstResponder) {
2558 NSDictionary<NSString*, NSNumber*>* encodedTargetRect = args[@"targetRect"];
2559 CGRect globalTargetRect = CGRectMake(
2560 [encodedTargetRect[
@"x"] doubleValue], [encodedTargetRect[
@"y"] doubleValue],
2561 [encodedTargetRect[
@"width"] doubleValue], [encodedTargetRect[
@"height"] doubleValue]);
2562 CGRect localTargetRect = [
self.hostView convertRect:globalTargetRect toView:self.activeView];
2563 [
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 2387 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: