Flutter Engine
accessibility_text_entry.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_TEXT_ENTRY_H_
6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_TEXT_ENTRY_H_
7 
8 /**
9  * An implementation of `UITextInput` used for text fields that do not currently
10  * have input focus.
11  *
12  * This class is used by `TextInputSemanticsObject`.
13  */
14 @interface FlutterInactiveTextInput : UIView <UITextInput>
15 
16 @property(nonatomic, copy) NSString* text;
17 @property(nonatomic, readonly) NSMutableString* markedText;
18 @property(readwrite, copy) UITextRange* selectedTextRange;
19 @property(nonatomic, strong) UITextRange* markedTextRange;
20 @property(nonatomic, copy) NSDictionary* markedTextStyle;
21 @property(nonatomic, assign) id<UITextInputDelegate> inputDelegate;
22 
23 @end
24 
25 /**
26  * An implementation of `SemanticsObject` specialized for expressing text
27  * fields.
28  *
29  * Delegates to `FlutterTextInputView` when the object corresponds to a text
30  * field that currently owns input focus. Delegates to
31  * `FlutterInactiveTextInput` otherwise.
32  */
33 @interface TextInputSemanticsObject : SemanticsObject <UITextInput>
34 @end
35 
36 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_TEXT_ENTRY_H_
id< UITextInputDelegate > inputDelegate