| Flutter iOS Embedder |

Classes | Functions | Variables
FlutterTextInputPlugin.mm File Reference
`#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

## Function Documentation

## ◆ AutofillIdFromDictionary()

static NSString* AutofillIdFromDictionary | ( | NSDictionary * | dictionary | ) |
| static

Definition at line 322 of file FlutterTextInputPlugin.mm.

322 {
323 NSDictionary* autofill = dictionary[kAutofillProperties];
324 if (autofill) {
325 return autofill[kAutofillId];
326 }
327
328 // When autofill is nil, the field may still need an autofill id
329 // if the field is for password.
330 return [dictionary[kSecureTextEntry] boolValue] ? @"password" : nil;
331 }

References kAutofillId, kAutofillProperties, and kSecureTextEntry.

Referenced by IsFieldPasswordRelated().

## ◆ AutofillTypeOf()

static FlutterAutofillType AutofillTypeOf | ( | NSDictionary * | configuration | ) |
| static

Definition at line 418 of file FlutterTextInputPlugin.mm.

418 {
419 for (NSDictionary* field in configuration[kAssociatedAutofillFields]) {
420 if (IsFieldPasswordRelated(field)) {
421 return kFlutterAutofillTypePassword;
422 }
423 }
424
425 if (IsFieldPasswordRelated(configuration)) {
426 return kFlutterAutofillTypePassword;
427 }
428
429 NSDictionary* autofill = configuration[kAutofillProperties];
430 UITextContentType contentType = ToUITextContentType(autofill[kAutofillHints]);
431 return !autofill || [contentType isEqualToString:@""] ? kFlutterAutofillTypeNone
432 : kFlutterAutofillTypeRegular;
433 }

References IsFieldPasswordRelated(), kAssociatedAutofillFields, kAutofillHints, kAutofillProperties, and ToUITextContentType().

## ◆ IsApproximatelyEqual()

static BOOL IsApproximatelyEqual | ( | float | x,
|  | float | y,
|  | float | delta
| ) |  |
| static

Definition at line 435 of file FlutterTextInputPlugin.mm.

435 {
436 return fabsf(x - y) <= delta;
437 }

Referenced by IsSelectionRectBoundaryCloserToPoint().

## ◆ IsEmoji()

static BOOL IsEmoji | ( | NSString * | text,
|  | NSRange | charRange
| ) |  |
| static

Definition at line 85 of file FlutterTextInputPlugin.mm.

85 {
86 UChar32 codePoint;
87 BOOL gotCodePoint = [text getBytes:&codePoint
88 maxLength:sizeof(codePoint)
89 usedLength:NULL
90 encoding:NSUTF32StringEncoding
91 options:kNilOptions
92 range:charRange
93 remainingRange:NULL];
94 return gotCodePoint && u_hasBinaryProperty(codePoint, UCHAR_EMOJI);
95 }

## ◆ IsFieldPasswordRelated()

static BOOL IsFieldPasswordRelated | ( | NSDictionary * | configuration | ) |
| static

Definition at line 391 of file FlutterTextInputPlugin.mm.

391 {
392 // Autofill is explicitly disabled if the id isn't present.
393 if (!AutofillIdFromDictionary(configuration)) {
394 return NO;
395 }
396
397 BOOL isSecureTextEntry = [configuration[kSecureTextEntry] boolValue];
398 if (isSecureTextEntry) {
399 return YES;
400 }
401
402 NSDictionary* autofill = configuration[kAutofillProperties];
403 UITextContentType contentType = ToUITextContentType(autofill[kAutofillHints]);
404
405 if ([contentType isEqualToString:UITextContentTypePassword] ||
406 [contentType isEqualToString:UITextContentTypeUsername]) {
407 return YES;
408 }
409
410 if (@available(iOS 12.0, *)) {
411 if ([contentType isEqualToString:UITextContentTypeNewPassword]) {
412 return YES;
413 }
414 }
415 return NO;
416 }

References AutofillIdFromDictionary(), kAutofillHints, kAutofillProperties, kSecureTextEntry, and ToUITextContentType().

Referenced by AutofillTypeOf().

## ◆ IsSelectionRectBoundaryCloserToPoint()

static BOOL IsSelectionRectBoundaryCloserToPoint | ( | CGPoint | point,
|  | CGRect | selectionRect,
|  | BOOL | selectionRectIsRTL,
|  | BOOL | useTrailingBoundaryOfSelectionRect,
|  | CGRect | otherSelectionRect,
|  | BOOL | otherSelectionRectIsRTL,
|  | CGFloat | verticalPrecision
| ) |  |
| static

Definition at line 461 of file FlutterTextInputPlugin.mm.

467 {
468 // The point is inside the selectionRect's corresponding half-rect area.
469 if (CGRectContainsPoint(
470 CGRectMake(
471 selectionRect.origin.x + ((useTrailingBoundaryOfSelectionRect ^ selectionRectIsRTL)
472 ? 0.5 * selectionRect.size.width
473 : 0),
474 selectionRect.origin.y, 0.5 * selectionRect.size.width, selectionRect.size.height),
475 point)) {
476 return YES;
477 }
478 // pointForSelectionRect is either leading-center or trailing-center point of selectionRect.
479 CGPoint pointForSelectionRect = CGPointMake(
480 selectionRect.origin.x +
481 (selectionRectIsRTL ^ useTrailingBoundaryOfSelectionRect ? selectionRect.size.width : 0),
482 selectionRect.origin.y + selectionRect.size.height * 0.5);
483 float yDist = fabs(pointForSelectionRect.y - point.y);
484 float xDist = fabs(pointForSelectionRect.x - point.x);
485
486 // pointForOtherSelectionRect is the leading-center point of otherSelectionRect.
487 CGPoint pointForOtherSelectionRect = CGPointMake(
488 otherSelectionRect.origin.x + (otherSelectionRectIsRTL ? otherSelectionRect.size.width : 0),
489 otherSelectionRect.origin.y + otherSelectionRect.size.height * 0.5);
490 float yDistOther = fabs(pointForOtherSelectionRect.y - point.y);
491 float xDistOther = fabs(pointForOtherSelectionRect.x - point.x);
492
493 // This serves a similar purpose to IsApproximatelyEqual, allowing a little buffer before
494 // declaring something closer vertically to account for the small variations in size and position
495 // of SelectionRects, especially when dealing with emoji.
496 BOOL isCloserVertically = yDist < yDistOther - verticalPrecision;
497 BOOL isEqualVertically = IsApproximatelyEqual(yDist, yDistOther, verticalPrecision);
498 BOOL isAboveBottomOfLine = point.y <= selectionRect.origin.y + selectionRect.size.height;
499 BOOL isCloserHorizontally = xDist < xDistOther;
500 BOOL isBelowBottomOfLine = point.y > selectionRect.origin.y + selectionRect.size.height;
501 // Is "farther away", or is closer to the end of the text line.
502 BOOL isFarther;
503 if (selectionRectIsRTL) {
504 isFarther = selectionRect.origin.x < otherSelectionRect.origin.x;
505 } else {
506 isFarther = selectionRect.origin.x +
507 (useTrailingBoundaryOfSelectionRect ? selectionRect.size.width : 0) >
508 otherSelectionRect.origin.x;
509 }
510 return (isCloserVertically ||
511 (isEqualVertically &&
512 ((isAboveBottomOfLine && isCloserHorizontally) || (isBelowBottomOfLine && isFarther))));
513 }

References IsApproximatelyEqual().

## ◆ NS_ENUM()

typedef NS_ENUM | ( | NSInteger | ,
|  | FlutterAutofillType |
| ) |  |

Definition at line 382 of file FlutterTextInputPlugin.mm.

382 {
383 // The field does not have autofillable content. Additionally if
384 // the field is currently in the autofill context, it will be
385 // removed from the context without triggering autofill save.
386 kFlutterAutofillTypeNone,
387 kFlutterAutofillTypeRegular,
388 kFlutterAutofillTypePassword,
389 };

## ◆ ShouldShowSystemKeyboard()

static BOOL ShouldShowSystemKeyboard | ( | NSDictionary * | type | ) |
| static

Definition at line 101 of file FlutterTextInputPlugin.mm.

101 {
102 NSString* inputType = type[@"name"];
103 return ![inputType isEqualToString:@"TextInputType.none"];
104 }

## ◆ ToUIKeyboardType()

static UIKeyboardType ToUIKeyboardType | ( | NSDictionary * | type | ) |
| static

Definition at line 105 of file FlutterTextInputPlugin.mm.

105 {
106 NSString* inputType = type[@"name"];
107 if ([inputType isEqualToString:@"TextInputType.address"]) {
108 return UIKeyboardTypeDefault;
109 }
110 if ([inputType isEqualToString:@"TextInputType.datetime"]) {
111 return UIKeyboardTypeNumbersAndPunctuation;
112 }
113 if ([inputType isEqualToString:@"TextInputType.emailAddress"]) {
114 return UIKeyboardTypeEmailAddress;
115 }
116 if ([inputType isEqualToString:@"TextInputType.multiline"]) {
117 return UIKeyboardTypeDefault;
118 }
119 if ([inputType isEqualToString:@"TextInputType.name"]) {
120 return UIKeyboardTypeNamePhonePad;
121 }
122 if ([inputType isEqualToString:@"TextInputType.number"]) {
123 if ([type[@"signed"] boolValue]) {
124 return UIKeyboardTypeNumbersAndPunctuation;
125 }
126 if ([type[@"decimal"] boolValue]) {
127 return UIKeyboardTypeDecimalPad;
128 }
129 return UIKeyboardTypeNumberPad;
130 }
131 if ([inputType isEqualToString:@"TextInputType.phone"]) {
132 return UIKeyboardTypePhonePad;
133 }
134 if ([inputType isEqualToString:@"TextInputType.text"]) {
135 return UIKeyboardTypeDefault;
136 }
137 if ([inputType isEqualToString:@"TextInputType.url"]) {
138 return UIKeyboardTypeURL;
139 }
140 return UIKeyboardTypeDefault;
141 }

## ◆ ToUIReturnKeyType()

static UIReturnKeyType ToUIReturnKeyType | ( | NSString * | inputType | ) |
| static

Definition at line 155 of file FlutterTextInputPlugin.mm.

155 {
156 // Where did the term "unspecified" come from? iOS has a "default" and Android
157 // has "unspecified." These 2 terms seem to mean the same thing but we need
158 // to pick just one. "unspecified" was chosen because "default" is often a
159 // reserved word in languages with switch statements (dart, java, etc).
160 if ([inputType isEqualToString:@"TextInputAction.unspecified"]) {
161 return UIReturnKeyDefault;
162 }
163
164 if ([inputType isEqualToString:@"TextInputAction.done"]) {
165 return UIReturnKeyDone;
166 }
167
168 if ([inputType isEqualToString:@"TextInputAction.go"]) {
169 return UIReturnKeyGo;
170 }
171
172 if ([inputType isEqualToString:@"TextInputAction.send"]) {
173 return UIReturnKeySend;
174 }
175
176 if ([inputType isEqualToString:@"TextInputAction.search"]) {
177 return UIReturnKeySearch;
178 }
179
180 if ([inputType isEqualToString:@"TextInputAction.next"]) {
181 return UIReturnKeyNext;
182 }
183
184 if ([inputType isEqualToString:@"TextInputAction.continueAction"]) {
185 return UIReturnKeyContinue;
186 }
187
188 if ([inputType isEqualToString:@"TextInputAction.join"]) {
189 return UIReturnKeyJoin;
190 }
191
192 if ([inputType isEqualToString:@"TextInputAction.route"]) {
193 return UIReturnKeyRoute;
194 }
195
196 if ([inputType isEqualToString:@"TextInputAction.emergencyCall"]) {
197 return UIReturnKeyEmergencyCall;
198 }
199
200 if ([inputType isEqualToString:@"TextInputAction.newline"]) {
201 return UIReturnKeyDefault;
202 }
203
204 // Present default key if bad input type is given.
205 return UIReturnKeyDefault;
206 }

## ◆ ToUITextAutoCapitalizationType()

static UITextAutocapitalizationType ToUITextAutoCapitalizationType | ( | NSDictionary * | type | ) |
| static

Definition at line 143 of file FlutterTextInputPlugin.mm.

143 {
144 NSString* textCapitalization = type[@"textCapitalization"];
145 if ([textCapitalization isEqualToString:@"TextCapitalization.characters"]) {
146 return UITextAutocapitalizationTypeAllCharacters;
147 } else if ([textCapitalization isEqualToString:@"TextCapitalization.sentences"]) {
148 return UITextAutocapitalizationTypeSentences;
149 } else if ([textCapitalization isEqualToString:@"TextCapitalization.words"]) {
150 return UITextAutocapitalizationTypeWords;
151 }
152 return UITextAutocapitalizationTypeNone;
153 }

## ◆ ToUITextContentType()

static UITextContentType ToUITextContentType | ( | NSArray< NSString * > * | hints | ) |
| static

Definition at line 208 of file FlutterTextInputPlugin.mm.

208 {
209 if (!hints || hints.count == 0) {
210 // If no hints are specified, use the default content type nil.
211 return nil;
212 }
213
214 NSString* hint = hints[0];
215 if ([hint isEqualToString:@"addressCityAndState"]) {
216 return UITextContentTypeAddressCityAndState;
217 }
218
219 if ([hint isEqualToString:@"addressState"]) {
220 return UITextContentTypeAddressState;
221 }
222
223 if ([hint isEqualToString:@"addressCity"]) {
224 return UITextContentTypeAddressCity;
225 }
226
227 if ([hint isEqualToString:@"sublocality"]) {
228 return UITextContentTypeSublocality;
229 }
230
231 if ([hint isEqualToString:@"streetAddressLine1"]) {
232 return UITextContentTypeStreetAddressLine1;
233 }
234
235 if ([hint isEqualToString:@"streetAddressLine2"]) {
236 return UITextContentTypeStreetAddressLine2;
237 }
238
239 if ([hint isEqualToString:@"countryName"]) {
240 return UITextContentTypeCountryName;
241 }
242
243 if ([hint isEqualToString:@"fullStreetAddress"]) {
244 return UITextContentTypeFullStreetAddress;
245 }
246
247 if ([hint isEqualToString:@"postalCode"]) {
248 return UITextContentTypePostalCode;
249 }
250
251 if ([hint isEqualToString:@"location"]) {
252 return UITextContentTypeLocation;
253 }
254
255 if ([hint isEqualToString:@"creditCardNumber"]) {
256 return UITextContentTypeCreditCardNumber;
257 }
258
259 if ([hint isEqualToString:@"email"]) {
260 return UITextContentTypeEmailAddress;
261 }
262
263 if ([hint isEqualToString:@"jobTitle"]) {
264 return UITextContentTypeJobTitle;
265 }
266
267 if ([hint isEqualToString:@"givenName"]) {
268 return UITextContentTypeGivenName;
269 }
270
271 if ([hint isEqualToString:@"middleName"]) {
272 return UITextContentTypeMiddleName;
273 }
274
275 if ([hint isEqualToString:@"familyName"]) {
276 return UITextContentTypeFamilyName;
277 }
278
279 if ([hint isEqualToString:@"name"]) {
280 return UITextContentTypeName;
281 }
282
283 if ([hint isEqualToString:@"namePrefix"]) {
284 return UITextContentTypeNamePrefix;
285 }
286
287 if ([hint isEqualToString:@"nameSuffix"]) {
288 return UITextContentTypeNameSuffix;
289 }
290
291 if ([hint isEqualToString:@"nickname"]) {
292 return UITextContentTypeNickname;
293 }
294
295 if ([hint isEqualToString:@"organizationName"]) {
296 return UITextContentTypeOrganizationName;
297 }
298
299 if ([hint isEqualToString:@"telephoneNumber"]) {
300 return UITextContentTypeTelephoneNumber;
301 }
302
303 if ([hint isEqualToString:@"password"]) {
304 return UITextContentTypePassword;
305 }
306
307 if (@available(iOS 12.0, *)) {
308 if ([hint isEqualToString:@"oneTimeCode"]) {
309 return UITextContentTypeOneTimeCode;
310 }
311
312 if ([hint isEqualToString:@"newPassword"]) {
313 return UITextContentTypeNewPassword;
314 }
315 }
316
317 return hints[0];
318 }

Referenced by AutofillTypeOf(), and IsFieldPasswordRelated().

## Variable Documentation

## ◆ _cachedFirstRect

CGRect _cachedFirstRect

Definition at line 806 of file FlutterTextInputPlugin.mm.

## ◆ _enableInteractiveSelection

bool _enableInteractiveSelection

Definition at line 815 of file FlutterTextInputPlugin.mm.

## ◆ _floatingCursorOffset

CGPoint _floatingCursorOffset

Definition at line 814 of file FlutterTextInputPlugin.mm.

## ◆ _hasPlaceholder

BOOL _hasPlaceholder

Definition at line 808 of file FlutterTextInputPlugin.mm.

## ◆ _inputViewController

UIInputViewController* _inputViewController

Definition at line 805 of file FlutterTextInputPlugin.mm.

## ◆ _isFloatingCursorActive

bool _isFloatingCursorActive

Definition at line 813 of file FlutterTextInputPlugin.mm.

## ◆ _isSystemKeyboardEnabled

bool _isSystemKeyboardEnabled

Definition at line 812 of file FlutterTextInputPlugin.mm.

## ◆ _scribbleInteractionStatus

FlutterScribbleInteractionStatus _scribbleInteractionStatus

Definition at line 807 of file FlutterTextInputPlugin.mm.

## ◆ _selectedTextRange

FlutterTextRange* _selectedTextRange

Definition at line 804 of file FlutterTextInputPlugin.mm.

## ◆ _selectionAffinity

const char* _selectionAffinity

Initial value:
{
int _textInputClient

Definition at line 801 of file FlutterTextInputPlugin.mm.

## ◆ kAssociatedAutofillFields

NSString* const kAssociatedAutofillFields = @"@"fields"
| static

Definition at line 72 of file FlutterTextInputPlugin.mm.

Referenced by AutofillTypeOf().

## ◆ kAutocorrectionType

NSString* const kAutocorrectionType = @"@"autocorrect"
| static

Definition at line 80 of file FlutterTextInputPlugin.mm.

## ◆ kAutofillEditingValue

NSString* const kAutofillEditingValue = @"@"editingValue"
| static

Definition at line 77 of file FlutterTextInputPlugin.mm.

## ◆ kAutofillHints

NSString* const kAutofillHints = @"@"hints"
| static

Definition at line 78 of file FlutterTextInputPlugin.mm.

Referenced by AutofillTypeOf(), and IsFieldPasswordRelated().

## ◆ kAutofillId

NSString* const kAutofillId = @"@"uniqueIdentifier"
| static

Definition at line 76 of file FlutterTextInputPlugin.mm.

Referenced by AutofillIdFromDictionary().

## ◆ kAutofillProperties

NSString* const kAutofillProperties = @"@"autofill"
| static

Definition at line 75 of file FlutterTextInputPlugin.mm.

Referenced by AutofillIdFromDictionary(), AutofillTypeOf(), and IsFieldPasswordRelated().

## ◆ kClearClientMethod

NSString* const kClearClientMethod = @"@"TextInput.clearClient"
| static

Definition at line 44 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kDeprecatedSetSelectionRectsMethod

NSString* const kDeprecatedSetSelectionRectsMethod = @"@"TextInput.setSelectionRects"
| static

Definition at line 52 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kEnableDeltaModel

NSString* const kEnableDeltaModel = @"@"enableDeltaModel"
| static

Definition at line 66 of file FlutterTextInputPlugin.mm.

## ◆ kEnableInteractiveSelection

NSString* const kEnableInteractiveSelection = @"@"enableInteractiveSelection"
| static

Definition at line 67 of file FlutterTextInputPlugin.mm.

## ◆ kFinishAutofillContextMethod

NSString* const kFinishAutofillContextMethod = @"@"TextInput.finishAutofillContext"
| static

Definition at line 48 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kHideMethod

NSString* const kHideMethod = @"@"TextInput.hide"
| static

Definition at line 40 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kInputAction

NSString* const kInputAction = @"@"inputAction"
| static

Definition at line 65 of file FlutterTextInputPlugin.mm.

## ◆ kInvalidFirstRect

const CGRect kInvalidFirstRect = {{-1, -1}, {9999, 9999}}

Definition at line 35 of file FlutterTextInputPlugin.mm.

## ◆ kKeyboardAnimationDelaySeconds

const NSTimeInterval kKeyboardAnimationDelaySeconds = 0.1
| static

Definition at line 26 of file FlutterTextInputPlugin.mm.

## ◆ kKeyboardAnimationTimeToCompleteion

const NSTimeInterval kKeyboardAnimationTimeToCompleteion = 0.3
| static

Definition at line 29 of file FlutterTextInputPlugin.mm.

## ◆ kKeyboardAppearance

NSString* const kKeyboardAppearance = @"@"keyboardAppearance"
| static

Definition at line 64 of file FlutterTextInputPlugin.mm.

## ◆ kKeyboardType

NSString* const kKeyboardType = @"@"inputType"
| static

Definition at line 63 of file FlutterTextInputPlugin.mm.

## ◆ kOnInteractiveKeyboardPointerMoveMethod

NSString* const kOnInteractiveKeyboardPointerMoveMethod
| static

Initial value:
=
@"@"TextInput.onPointerMoveForInteractiveKeyboard"

Definition at line 56 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kOnInteractiveKeyboardPointerUpMethod

NSString* const kOnInteractiveKeyboardPointerUpMethod
| static

Initial value:
=
@"@"TextInput.onPointerUpForInteractiveKeyboard"

Definition at line 58 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSecureTextEntry

NSString* const kSecureTextEntry = @"@"obscureText"
| static

Definition at line 62 of file FlutterTextInputPlugin.mm.

Referenced by AutofillIdFromDictionary(), and IsFieldPasswordRelated().

## ◆ kSetClientMethod

NSString* const kSetClientMethod = @"@"TextInput.setClient"
| static

Definition at line 41 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSetEditableSizeAndTransformMethod

NSString* const kSetEditableSizeAndTransformMethod
| static

Initial value:
=
@"@"TextInput.setEditableSizeAndTransform"

Definition at line 45 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSetEditingStateMethod

NSString* const kSetEditingStateMethod = @"@"TextInput.setEditingState"
| static

Definition at line 43 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSetMarkedTextRectMethod

NSString* const kSetMarkedTextRectMethod = @"@"TextInput.setMarkedTextRect"
| static

Definition at line 47 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSetPlatformViewClientMethod

NSString* const kSetPlatformViewClientMethod = @"@"TextInput.setPlatformViewClient"
| static

Definition at line 42 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSetSelectionRectsMethod

NSString* const kSetSelectionRectsMethod = @"@"Scribble.setSelectionRects"
| static

Definition at line 53 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kShowMethod

NSString* const kShowMethod = @"@"TextInput.show"
| static

Definition at line 39 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kSmartDashesType

NSString* const kSmartDashesType = @"@"smartDashesType"
| static

Definition at line 69 of file FlutterTextInputPlugin.mm.

## ◆ kSmartQuotesType

NSString* const kSmartQuotesType = @"@"smartQuotesType"
| static

Definition at line 70 of file FlutterTextInputPlugin.mm.

## ◆ kStartLiveTextInputMethod

NSString* const kStartLiveTextInputMethod = @"@"TextInput.startLiveTextInput"
| static

Definition at line 54 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

## ◆ kTextAffinityDownstream

const FLUTTER_ASSERT_ARC char kTextAffinityDownstream[] = "TextAffinity.downstream"
| static

Definition at line 18 of file FlutterTextInputPlugin.mm.

## ◆ kTextAffinityUpstream

const char kTextAffinityUpstream[] = "TextAffinity.upstream"
| static

Definition at line 19 of file FlutterTextInputPlugin.mm.

## ◆ kUITextInputAccessibilityEnablingDelaySeconds

constexpr double kUITextInputAccessibilityEnablingDelaySeconds = 0.5
| static constexpr

Definition at line 22 of file FlutterTextInputPlugin.mm.

## ◆ kUpdateConfigMethod

NSString* const kUpdateConfigMethod = @"@"TextInput.updateConfig"
| static

Definition at line 55 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextInputPlugin::handleMethodCall:result:.

ToUITextContentType
static UITextContentType ToUITextContentType(NSArray< NSString * > *hints)
Definition: FlutterTextInputPlugin.mm:208
IsFieldPasswordRelated
static BOOL IsFieldPasswordRelated(NSDictionary *configuration)
Definition: FlutterTextInputPlugin.mm:391
kAutofillProperties
static NSString *const kAutofillProperties
Definition: FlutterTextInputPlugin.mm:75
kAutofillId
static NSString *const kAutofillId
Definition: FlutterTextInputPlugin.mm:76
kSecureTextEntry
static NSString *const kSecureTextEntry
Definition: FlutterTextInputPlugin.mm:62
kAssociatedAutofillFields
static NSString *const kAssociatedAutofillFields
Definition: FlutterTextInputPlugin.mm:72
AutofillIdFromDictionary
static NSString * AutofillIdFromDictionary(NSDictionary *dictionary)
Definition: FlutterTextInputPlugin.mm:322
kAutofillHints
static NSString *const kAutofillHints
Definition: FlutterTextInputPlugin.mm:78
IsApproximatelyEqual
static BOOL IsApproximatelyEqual(float x, float y, float delta)
Definition: FlutterTextInputPlugin.mm:435