Flutter Engine
 
Loading...
Searching...
No Matches
FlutterKeyboardManager() Category Reference
Inheritance diagram for FlutterKeyboardManager():

Instance Methods

(void) - dispatchToSecondaryResponders:complete:
 
(void) - addPrimaryResponder:
 
(void) - processNextEvent
 
(void) - performProcessEvent:withContext:onFinish:
 
(void) - dispatchTextEvent:withContext:
 
(void) - buildLayout
 

Properties

NSMutableArray< id< FlutterKeyPrimaryResponder > > * primaryResponders
 
NSMutableArray< id< FlutterKeySecondaryResponder > > * secondaryResponders
 
id< FlutterKeyboardManagerDelegatedelegate
 
NSMutableArray< FlutterEventWithContext * > * pendingEvents
 
BOOL processingEvent
 
NSMutableDictionary< NSNumber *, NSNumber * > * layoutMap
 
NSEvent * eventBeingDispatched
 

Detailed Description

Definition at line 14 of file FlutterKeyboardManager.mm.

Method Documentation

◆ addPrimaryResponder:

- (void) addPrimaryResponder: (nonnull id< FlutterKeyPrimaryResponder >)  responder

Add a primary responder, which asynchronously decides whether to handle an event.

◆ buildLayout

- (void) buildLayout

Clears the current layout and build a new one based on the current layout.

◆ dispatchTextEvent:withContext:

- (void) dispatchTextEvent: (nonnull NSEvent *)  pendingEvent
withContext: (nonnull id< FlutterKeyboardManagerEventContext >)  context 

Dispatch an event that's not hadled by the responders to text input plugin, and potentially to the next responder.

◆ dispatchToSecondaryResponders:complete:

- (void) dispatchToSecondaryResponders: (nonnull FlutterUIPressProxy *)  press
complete: (ios(13.4))  API_AVAILABLE 

◆ performProcessEvent:withContext:onFinish:

- (void) performProcessEvent: (NSEvent *)  event
withContext: (nonnull id< FlutterKeyboardManagerEventContext >)  context
onFinish: (nonnull VoidBlock)  onFinish 

Implement how to process an event.

The onFinish must be called eventually, either during this function or asynchronously later, otherwise the event queue will be stuck.

This function is called by processNextEvent.

◆ processNextEvent

- (void) processNextEvent

Start processing the next event if not started already.

This function might initiate an async process, whose callback calls this function again.

Property Documentation

◆ delegate

- (id<FlutterKeyboardManagerDelegate>) delegate
readwritenonatomicweak

The text input plugin set by initialization.

Definition at line 79 of file FlutterKeyboardManager.mm.

◆ eventBeingDispatched

- (NSEvent*) eventBeingDispatched
readwritenonatomicassign

Definition at line 92 of file FlutterKeyboardManager.mm.

◆ layoutMap

- (NSMutableDictionary<NSNumber*, NSNumber*>*) layoutMap
readwritenonatomicassign

Definition at line 90 of file FlutterKeyboardManager.mm.

◆ pendingEvents

- (NSMutableArray<FlutterEventWithContext*>*) pendingEvents
readwritenonatomicassign

Definition at line 86 of file FlutterKeyboardManager.mm.

◆ primaryResponders

- (NSMutableArray<id<FlutterKeyPrimaryResponder> >*) primaryResponders
readwritenonatomicassign

The primary responders added by addPrimaryResponder.

Definition at line 20 of file FlutterKeyboardManager.mm.

◆ processingEvent

- (BOOL) processingEvent
readwritenonatomicassign

Definition at line 88 of file FlutterKeyboardManager.mm.

◆ secondaryResponders

- (NSMutableArray<id<FlutterKeySecondaryResponder> >*) secondaryResponders
readnonatomiccopy

The secondary responders added by addSecondaryResponder.

Definition at line 26 of file FlutterKeyboardManager.mm.


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