Flutter macOS Embedder
FlutterKeyboardManager() Category Reference

Instance Methods

(void) - addPrimaryResponder:
 
(void) - processNextEvent
 
(void) - performProcessEvent:onFinish:
 
(void) - dispatchTextEvent:
 
(void) - buildLayout
 

Properties

id< FlutterKeyboardViewDelegateviewDelegate
 
NSMutableArray< id< FlutterKeyPrimaryResponder > > * primaryResponders
 
NSMutableArray< NSEvent * > * pendingEvents
 
BOOL processingEvent
 
NSMutableDictionary< NSNumber *, NSNumber * > * layoutMap
 
NSEvent * eventBeingDispatched
 

Detailed Description

Definition at line 55 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:

- (void) dispatchTextEvent: (nonnull NSEvent *)  pendingEvent

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

◆ performProcessEvent:onFinish:

- (void) performProcessEvent: (NSEvent *)  event
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

◆ eventBeingDispatched

- (NSEvent*) eventBeingDispatched
readwritenonatomicassign

Definition at line 73 of file FlutterKeyboardManager.mm.

◆ layoutMap

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

Definition at line 71 of file FlutterKeyboardManager.mm.

◆ pendingEvents

- (NSMutableArray<NSEvent*>*) pendingEvents
readwritenonatomicassign

Definition at line 67 of file FlutterKeyboardManager.mm.

◆ primaryResponders

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

The primary responders added by addPrimaryResponder.

Definition at line 65 of file FlutterKeyboardManager.mm.

◆ processingEvent

- (BOOL) processingEvent
readwritenonatomicassign

Definition at line 69 of file FlutterKeyboardManager.mm.

◆ viewDelegate

- (id<FlutterKeyboardViewDelegate>) viewDelegate
readwritenonatomicweak

The text input plugin set by initialization.

Definition at line 60 of file FlutterKeyboardManager.mm.


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