Flutter iOS Embedder
FlutterTextPosition Class Reference

#import <FlutterTextInputPlugin.h>

Inheritance diagram for FlutterTextPosition:

Instance Methods

(instancetype) - initWithIndex:affinity:
 

Class Methods

(instancetype) + positionWithIndex:
 
(instancetype) + positionWithIndex:affinity:
 

Properties

NSUInteger index
 
UITextStorageDirection affinity
 

Detailed Description

An indexed position in the buffer of a Flutter text editing widget.

Definition at line 76 of file FlutterTextInputPlugin.h.

Method Documentation

◆ initWithIndex:affinity:

- (instancetype) initWithIndex: (NSUInteger)  index
affinity: (UITextStorageDirection)  affinity 

Definition at line 469 of file FlutterTextInputPlugin.mm.

535  :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
536  self = [super init];
537  if (self) {
538  _index = index;
539  _affinity = affinity;
540  }
541  return self;
542 }
UITextStorageDirection affinity

References IsApproximatelyEqual().

◆ positionWithIndex:

+ (instancetype) positionWithIndex: (NSUInteger)  index

Definition at line 469 of file FlutterTextInputPlugin.mm.

527  :(NSUInteger)index {
528  return [[FlutterTextPosition alloc] initWithIndex:index affinity:UITextStorageDirectionForward];
529 }

◆ positionWithIndex:affinity:

+ (instancetype) positionWithIndex: (NSUInteger)  index
affinity: (UITextStorageDirection)  affinity 

Definition at line 469 of file FlutterTextInputPlugin.mm.

531  :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
532  return [[FlutterTextPosition alloc] initWithIndex:index affinity:affinity];
533 }

Property Documentation

◆ affinity

- (UITextStorageDirection) affinity
readnonatomicassign

Definition at line 79 of file FlutterTextInputPlugin.h.

◆ index

- (NSUInteger) index
readnonatomicassign

Definition at line 78 of file FlutterTextInputPlugin.h.


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