Flutter Engine
The Flutter Engine
Instance Methods | Properties | List of all members
FlutterInactiveTextInput Class Reference
Inheritance diagram for FlutterInactiveTextInput:

Instance Methods

(BOOL- hasText [implementation]
 
(NSString *) - textInRange: [implementation]
 
(void) - replaceRange:withText: [implementation]
 
(void) - setMarkedText:selectedRange: [implementation]
 
(void) - unmarkText [implementation]
 
(UITextRange *) - textRangeFromPosition:toPosition: [implementation]
 
(UITextPosition *) - positionFromPosition:offset: [implementation]
 
(UITextPosition *) - positionFromPosition:inDirection:offset: [implementation]
 
(NSComparisonResult) - comparePosition:toPosition: [implementation]
 
(NSInteger) - offsetFromPosition:toPosition: [implementation]
 
(UITextPosition *) - positionWithinRange:farthestInDirection: [implementation]
 
(UITextRange *) - characterRangeByExtendingPosition:inDirection: [implementation]
 
(UITextWritingDirection) - baseWritingDirectionForPosition:inDirection: [implementation]
 
(void) - setBaseWritingDirection:forRange: [implementation]
 
(CGRect) - firstRectForRange: [implementation]
 
(CGRect) - caretRectForPosition: [implementation]
 
(UITextPosition *) - closestPositionToPoint: [implementation]
 
(UITextPosition *) - closestPositionToPoint:withinRange: [implementation]
 
(NSArray *) - selectionRectsForRange: [implementation]
 
(UITextRange *) - characterRangeAtPoint: [implementation]
 
(void) - insertText: [implementation]
 
(void) - deleteBackward [implementation]
 

Properties

NSString * text
 

Detailed Description

An implementation of UITextInput used for text fields that do not currently have input focus.

This class is used by TextInputSemanticsObject.

Definition at line 19 of file TextInputSemanticsObject.mm.

Method Documentation

◆ baseWritingDirectionForPosition:inDirection:

- (UITextWritingDirection) baseWritingDirectionForPosition: (UITextPosition*)  position
inDirection: (UITextStorageDirection)  direction 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

119 :(UITextPosition*)position
120 inDirection:(UITextStorageDirection)direction {
121 // Not editable. Does not apply.
122 return UITextWritingDirectionNatural;
123}

◆ caretRectForPosition:

- (CGRect) caretRectForPosition: (UITextPosition*)  position
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

137 :(UITextPosition*)position {
138 // This method is required but not called by accessibility API for
139 // features we are using it for. It may need to be implemented if
140 // requirements change.
141 return CGRectZero;
142}

◆ characterRangeAtPoint:

- (UITextRange *) characterRangeAtPoint: (CGPoint)  point
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

165 :(CGPoint)point {
166 // This method is required but not called by accessibility API for
167 // features we are using it for. It may need to be implemented if
168 // requirements change.
169 return nil;
170}

◆ characterRangeByExtendingPosition:inDirection:

- (UITextRange *) characterRangeByExtendingPosition: (UITextPosition*)  position
inDirection: (UITextLayoutDirection)  direction 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

111 :(UITextPosition*)position
112 inDirection:(UITextLayoutDirection)direction {
113 // This method is required but not called by accessibility API for
114 // features we are using it for. It may need to be implemented if
115 // requirements change.
116 return nil;
117}

◆ closestPositionToPoint:

- (UITextPosition *) closestPositionToPoint: (CGPoint)  point
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

144 :(CGPoint)point {
145 // This method is required but not called by accessibility API for
146 // features we are using it for. It may need to be implemented if
147 // requirements change.
148 return nil;
149}

◆ closestPositionToPoint:withinRange:

- (UITextPosition *) closestPositionToPoint: (CGPoint)  point
withinRange: (UITextRange*)  range 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

151 :(CGPoint)point withinRange:(UITextRange*)range {
152 // This method is required but not called by accessibility API for
153 // features we are using it for. It may need to be implemented if
154 // requirements change.
155 return nil;
156}

◆ comparePosition:toPosition:

- (NSComparisonResult) comparePosition: (UITextPosition*)  position
toPosition: (UITextPosition*)  other 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

89 :(UITextPosition*)position toPosition:(UITextPosition*)other {
90 // This method is required but not called by accessibility API for
91 // features we are using it for. It may need to be implemented if
92 // requirements change.
93 return NSOrderedSame;
94}

◆ deleteBackward

- (void) deleteBackward
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

178 {
179 // This method is required but not called by accessibility API for
180 // features we are using it for. It may need to be implemented if
181 // requirements change.
182}

◆ firstRectForRange:

- (CGRect) firstRectForRange: (UITextRange*)  range
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

130 :(UITextRange*)range {
131 // This method is required but not called by accessibility API for
132 // features we are using it for. It may need to be implemented if
133 // requirements change.
134 return CGRectZero;
135}

◆ hasText

- (BOOL) hasText
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

33 {
34 return self.text.length > 0;
35}

◆ insertText:

- (void) insertText: (NSString*)  text
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

172 :(NSString*)text {
173 // This method is required but not called by accessibility API for
174 // features we are using it for. It may need to be implemented if
175 // requirements change.
176}

◆ offsetFromPosition:toPosition:

- (NSInteger) offsetFromPosition: (UITextPosition*)  from
toPosition: (UITextPosition*)  toPosition 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

96 :(UITextPosition*)from toPosition:(UITextPosition*)toPosition {
97 // This method is required but not called by accessibility API for
98 // features we are using it for. It may need to be implemented if
99 // requirements change.
100 return 0;
101}

◆ positionFromPosition:inDirection:offset:

- (UITextPosition *) positionFromPosition: (UITextPosition*)  position
inDirection: (UITextLayoutDirection)  direction
offset: (NSInteger)  offset 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

80 :(UITextPosition*)position
81 inDirection:(UITextLayoutDirection)direction
82 offset:(NSInteger)offset {
83 // This method is required but not called by accessibility API for
84 // features we are using it for. It may need to be implemented if
85 // requirements change.
86 return nil;
87}
SeparatedVector2 offset

◆ positionFromPosition:offset:

- (UITextPosition *) positionFromPosition: (UITextPosition*)  position
offset: (NSInteger)  offset 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

73 :(UITextPosition*)position offset:(NSInteger)offset {
74 // This method is required but not called by accessibility API for
75 // features we are using it for. It may need to be implemented if
76 // requirements change.
77 return nil;
78}

◆ positionWithinRange:farthestInDirection:

- (UITextPosition *) positionWithinRange: (UITextRange*)  range
farthestInDirection: (UITextLayoutDirection)  direction 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

103 :(UITextRange*)range
104 farthestInDirection:(UITextLayoutDirection)direction {
105 // This method is required but not called by accessibility API for
106 // features we are using it for. It may need to be implemented if
107 // requirements change.
108 return nil;
109}

◆ replaceRange:withText:

- (void) replaceRange: (UITextRange*)  range
withText: (NSString*)  text 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

48 :(UITextRange*)range withText:(NSString*)text {
49 // This method is required but not called by accessibility API for
50 // features we are using it for. It may need to be implemented if
51 // requirements change.
52}

◆ selectionRectsForRange:

- (NSArray *) selectionRectsForRange: (UITextRange*)  range
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

158 :(UITextRange*)range {
159 // This method is required but not called by accessibility API for
160 // features we are using it for. It may need to be implemented if
161 // requirements change.
162 return @[];
163}

◆ setBaseWritingDirection:forRange:

- (void) setBaseWritingDirection: (UITextWritingDirection)  writingDirection
forRange: (UITextRange*)  range 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

125 :(UITextWritingDirection)writingDirection
126 forRange:(UITextRange*)range {
127 // Not editable. Does not apply.
128}

◆ setMarkedText:selectedRange:

- (void) setMarkedText: (NSString*)  markedText
selectedRange: (NSRange)  markedSelectedRange 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

54 :(NSString*)markedText selectedRange:(NSRange)markedSelectedRange {
55 // This method is required but not called by accessibility API for
56 // features we are using it for. It may need to be implemented if
57 // requirements change.
58}

◆ textInRange:

- (NSString *) textInRange: (UITextRange*)  range
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

37 :(UITextRange*)range {
38 if (!range) {
39 return nil;
40 }
41 NSAssert([range isKindOfClass:[FlutterTextRange class]],
42 @"Expected a FlutterTextRange for range (got %@).", [range class]);
43 NSRange textRange = ((FlutterTextRange*)range).range;
44 NSAssert(textRange.location != NSNotFound, @"Expected a valid text range.");
45 return [self.text substringWithRange:textRange];
46}

◆ textRangeFromPosition:toPosition:

- (UITextRange *) textRangeFromPosition: (UITextPosition*)  fromPosition
toPosition: (UITextPosition*)  toPosition 
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

66 :(UITextPosition*)fromPosition
67 toPosition:(UITextPosition*)toPosition {
68 NSUInteger fromIndex = ((FlutterTextPosition*)fromPosition).index;
69 NSUInteger toIndex = ((FlutterTextPosition*)toPosition).index;
70 return [FlutterTextRange rangeWithNSRange:NSMakeRange(fromIndex, toIndex - fromIndex)];
71}
instancetype rangeWithNSRange:(NSRange range)

◆ unmarkText

- (void) unmarkText
implementation

Definition at line 20 of file TextInputSemanticsObject.mm.

60 {
61 // This method is required but not called by accessibility API for
62 // features we are using it for. It may need to be implemented if
63 // requirements change.
64}

Property Documentation

◆ text

- (NSString*) text
readwritenonatomiccopy

Definition at line 20 of file TextInputSemanticsObject.mm.


The documentation for this class was generated from the following file: