#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/UIViewController+FlutterScreenAndSceneIfLoaded.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#include "unicode/uchar.h"
#include "flutter/fml/logging.h"
#include "flutter/fml/platform/darwin/string_range_sanitization.h"
Go to the source code of this file.
Classes | |
class | FlutterSecureTextInputView |
class | FlutterTextInputViewAccessibilityHider |
class | FlutterTimerProxy |
Functions | |
static BOOL | IsEmoji (NSString *text, NSRange charRange) |
static BOOL | ShouldShowSystemKeyboard (NSDictionary *type) |
static UIKeyboardType | ToUIKeyboardType (NSDictionary *type) |
static UITextAutocapitalizationType | ToUITextAutoCapitalizationType (NSDictionary *type) |
static UIReturnKeyType | ToUIReturnKeyType (NSString *inputType) |
static UITextContentType | ToUITextContentType (NSArray< NSString * > *hints) |
static NSString * | AutofillIdFromDictionary (NSDictionary *dictionary) |
typedef | NS_ENUM (NSInteger, FlutterAutofillType) |
static BOOL | IsFieldPasswordRelated (NSDictionary *configuration) |
static FlutterAutofillType | AutofillTypeOf (NSDictionary *configuration) |
static BOOL | IsApproximatelyEqual (float x, float y, float delta) |
static BOOL | IsSelectionRectBoundaryCloserToPoint (CGPoint point, CGRect selectionRect, BOOL selectionRectIsRTL, BOOL useTrailingBoundaryOfSelectionRect, CGRect otherSelectionRect, BOOL otherSelectionRectIsRTL, CGFloat verticalPrecision) |
Variables | |
static const FLUTTER_ASSERT_ARC char | kTextAffinityDownstream [] = "TextAffinity.downstream" |
static const char | kTextAffinityUpstream [] = "TextAffinity.upstream" |
static constexpr double | kUITextInputAccessibilityEnablingDelaySeconds = 0.5 |
static const NSTimeInterval | kKeyboardAnimationDelaySeconds = 0.1 |
static const NSTimeInterval | kKeyboardAnimationTimeToCompleteion = 0.3 |
const CGRect | kInvalidFirstRect = {{-1, -1}, {9999, 9999}} |
static NSString *const | kShowMethod = @"@"TextInput.show" |
static NSString *const | kHideMethod = @"@"TextInput.hide" |
static NSString *const | kSetClientMethod = @"@"TextInput.setClient" |
static NSString *const | kSetPlatformViewClientMethod = @"@"TextInput.setPlatformViewClient" |
static NSString *const | kSetEditingStateMethod = @"@"TextInput.setEditingState" |
static NSString *const | kClearClientMethod = @"@"TextInput.clearClient" |
static NSString *const | kSetEditableSizeAndTransformMethod |
static NSString *const | kSetMarkedTextRectMethod = @"@"TextInput.setMarkedTextRect" |
static NSString *const | kFinishAutofillContextMethod = @"@"TextInput.finishAutofillContext" |
static NSString *const | kDeprecatedSetSelectionRectsMethod = @"@"TextInput.setSelectionRects" |
static NSString *const | kSetSelectionRectsMethod = @"@"Scribble.setSelectionRects" |
static NSString *const | kStartLiveTextInputMethod = @"@"TextInput.startLiveTextInput" |
static NSString *const | kUpdateConfigMethod = @"@"TextInput.updateConfig" |
static NSString *const | kOnInteractiveKeyboardPointerMoveMethod |
static NSString *const | kOnInteractiveKeyboardPointerUpMethod |
static NSString *const | kSecureTextEntry = @"@"obscureText" |
static NSString *const | kKeyboardType = @"@"inputType" |
static NSString *const | kKeyboardAppearance = @"@"keyboardAppearance" |
static NSString *const | kInputAction = @"@"inputAction" |
static NSString *const | kEnableDeltaModel = @"@"enableDeltaModel" |
static NSString *const | kEnableInteractiveSelection = @"@"enableInteractiveSelection" |
static NSString *const | kSmartDashesType = @"@"smartDashesType" |
static NSString *const | kSmartQuotesType = @"@"smartQuotesType" |
static NSString *const | kAssociatedAutofillFields = @"@"fields" |
static NSString *const | kAutofillProperties = @"@"autofill" |
static NSString *const | kAutofillId = @"@"uniqueIdentifier" |
static NSString *const | kAutofillEditingValue = @"@"editingValue" |
static NSString *const | kAutofillHints = @"@"hints" |
static NSString *const | kAutocorrectionType = @"@"autocorrect" |
const char * | _selectionAffinity |
FlutterTextRange * | _selectedTextRange |
UIInputViewController * | _inputViewController |
CGRect | _cachedFirstRect |
FlutterScribbleInteractionStatus | _scribbleInteractionStatus |
BOOL | _hasPlaceholder |
bool | _isSystemKeyboardEnabled |
bool | _isFloatingCursorActive |
CGPoint | _floatingCursorOffset |
bool | _enableInteractiveSelection |
|
static |
Definition at line 323 of file FlutterTextInputPlugin.mm.
References kAutofillId, kAutofillProperties, and kSecureTextEntry.
Referenced by IsFieldPasswordRelated().
|
static |
Definition at line 418 of file FlutterTextInputPlugin.mm.
References IsFieldPasswordRelated(), kAssociatedAutofillFields, kAutofillHints, kAutofillProperties, and ToUITextContentType().
|
static |
Definition at line 435 of file FlutterTextInputPlugin.mm.
Referenced by IsSelectionRectBoundaryCloserToPoint().
|
static |
Definition at line 85 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 392 of file FlutterTextInputPlugin.mm.
References AutofillIdFromDictionary(), kAutofillHints, kAutofillProperties, kSecureTextEntry, and ToUITextContentType().
Referenced by AutofillTypeOf().
|
static |
Definition at line 461 of file FlutterTextInputPlugin.mm.
References IsApproximatelyEqual().
typedef NS_ENUM | ( | NSInteger | , |
FlutterAutofillType | |||
) |
Definition at line 383 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 101 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 105 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 158 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 146 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 211 of file FlutterTextInputPlugin.mm.
Referenced by AutofillTypeOf(), and IsFieldPasswordRelated().
CGRect _cachedFirstRect |
Definition at line 807 of file FlutterTextInputPlugin.mm.
bool _enableInteractiveSelection |
Definition at line 816 of file FlutterTextInputPlugin.mm.
CGPoint _floatingCursorOffset |
Definition at line 815 of file FlutterTextInputPlugin.mm.
BOOL _hasPlaceholder |
Definition at line 809 of file FlutterTextInputPlugin.mm.
UIInputViewController* _inputViewController |
Definition at line 806 of file FlutterTextInputPlugin.mm.
bool _isFloatingCursorActive |
Definition at line 814 of file FlutterTextInputPlugin.mm.
bool _isSystemKeyboardEnabled |
Definition at line 813 of file FlutterTextInputPlugin.mm.
FlutterScribbleInteractionStatus _scribbleInteractionStatus |
Definition at line 808 of file FlutterTextInputPlugin.mm.
FlutterTextRange* _selectedTextRange |
Definition at line 805 of file FlutterTextInputPlugin.mm.
const char* _selectionAffinity |
Definition at line 802 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 72 of file FlutterTextInputPlugin.mm.
Referenced by AutofillTypeOf().
|
static |
Definition at line 80 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 77 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 78 of file FlutterTextInputPlugin.mm.
Referenced by AutofillTypeOf(), and IsFieldPasswordRelated().
|
static |
Definition at line 76 of file FlutterTextInputPlugin.mm.
Referenced by AutofillIdFromDictionary().
|
static |
Definition at line 75 of file FlutterTextInputPlugin.mm.
Referenced by AutofillIdFromDictionary(), AutofillTypeOf(), and IsFieldPasswordRelated().
|
static |
Definition at line 44 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 52 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 66 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 67 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 48 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 40 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 65 of file FlutterTextInputPlugin.mm.
const CGRect kInvalidFirstRect = {{-1, -1}, {9999, 9999}} |
Definition at line 35 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 26 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 29 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 64 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 63 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 56 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 58 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 62 of file FlutterTextInputPlugin.mm.
Referenced by AutofillIdFromDictionary(), and IsFieldPasswordRelated().
|
static |
Definition at line 41 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 45 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 43 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 47 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 42 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 53 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 39 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 69 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 70 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 54 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.
|
static |
Definition at line 18 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 19 of file FlutterTextInputPlugin.mm.
|
staticconstexpr |
Definition at line 22 of file FlutterTextInputPlugin.mm.
|
static |
Definition at line 55 of file FlutterTextInputPlugin.mm.
Referenced by FlutterTextInputPlugin::handleMethodCall:result:.