Flutter Engine
FlutterTextInputModel Class Reference

#import <FlutterTextInputModel.h>

Inheritance diagram for FlutterTextInputModel:

Instance Methods

(nullable instancetype) - NS_UNAVAILABLE
 
(nullable instancetype) - initWithClientID:configuration:
 

Properties

NSMutableString * text
 
NSRange selectedRange
 
FlutterTextAffinity textAffinity
 
NSRange markedRange
 
NSDictionary * state
 
NSNumber * clientID
 
NSString * inputType
 
NSString * inputAction
 

Detailed Description

Data model representing text input state during an editing session.

Definition at line 20 of file FlutterTextInputModel.h.

Method Documentation

◆ initWithClientID:configuration:()

- (nullable instancetype) initWithClientID: (nonnull NSNumber *)  clientID
configuration: (nonnull NSDictionary *)  config 

Initializes a text input model with a [clientId] and [config] arguments. [config] arguments provide information on the text input connection.

◆ NS_UNAVAILABLE()

- (nullable instancetype) NS_UNAVAILABLE

Property Documentation

◆ clientID

- (NSNumber*) clientID
readnonatomicassign

ID of the text input client.

Definition at line 50 of file FlutterTextInputModel.h.

Referenced by GetExtentForRange().

◆ inputAction

- (NSString*) inputAction
readnonatomicassign

An action requested by the user on the input client. See available options: https://docs.flutter.io/flutter/services/TextInputAction-class.html

Definition at line 62 of file FlutterTextInputModel.h.

◆ inputType

- (NSString*) inputType
readnonatomicassign

Keyboard type of the client. See available options: https://docs.flutter.io/flutter/services/TextInputType-class.html

Definition at line 56 of file FlutterTextInputModel.h.

◆ markedRange

- (NSRange) markedRange
readwriteatomic

The range of text that is marked for edit, i.e. under the effects of a multi-keystroke input combination.

Definition at line 39 of file FlutterTextInputModel.h.

◆ selectedRange

- (NSRange) selectedRange
readwriteatomic

The range of text currently selected. This may have length zero to represent a single cursor position.

Definition at line 30 of file FlutterTextInputModel.h.

◆ state

- (NSDictionary *) state
readwriteatomicassign

Representation of the model's data as a state dictionary suitable for interchange with the Flutter Dart layer.

Definition at line 45 of file FlutterTextInputModel.h.

Referenced by GetExtentForRange().

◆ text

- (NSMutableString*) text
readwriteatomiccopy

The full text being edited.

Definition at line 25 of file FlutterTextInputModel.h.

Referenced by GetExtentForRange().

◆ textAffinity

- (FlutterTextAffinity) textAffinity
readwriteatomic

The affinity for the current cursor position.

Definition at line 34 of file FlutterTextInputModel.h.

Referenced by GetExtentForRange().


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