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 69 of file FlutterTextInputPlugin.h.

Method Documentation

◆ initWithIndex:affinity:

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

Definition at line 533 of file FlutterTextInputPlugin.mm.

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

References affinity, and index.

◆ positionWithIndex:

+ (instancetype) positionWithIndex: (NSUInteger)  index

Definition at line 525 of file FlutterTextInputPlugin.mm.

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

◆ positionWithIndex:affinity:

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

Definition at line 529 of file FlutterTextInputPlugin.mm.

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

Property Documentation

◆ affinity

- (UITextStorageDirection) affinity
readnonatomicassign

Definition at line 72 of file FlutterTextInputPlugin.h.

Referenced by initWithIndex:affinity:.

◆ index

- (NSUInteger) index
readnonatomicassign

Definition at line 71 of file FlutterTextInputPlugin.h.

Referenced by initWithIndex:affinity:.


The documentation for this class was generated from the following files:
FlutterTextPosition::affinity
UITextStorageDirection affinity
Definition: FlutterTextInputPlugin.h:72
FlutterTextPosition
Definition: FlutterTextInputPlugin.h:69
FlutterTextPosition::index
NSUInteger index
Definition: FlutterTextInputPlugin.h:71